+#
+#
+
# Copyright (C) 2007 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
constants.TAG_CLUSTER: "gnt-cluster",
constants.TAG_NODE: "gnt-node",
constants.TAG_INSTANCE: "gnt-instance",
+ constants.TAG_NODEGROUP: "gnt-group",
}
def TestNodeTags(node):
"""gnt-node tags"""
- _TestTags(constants.TAG_NODE, node["primary"])
+ _TestTags(constants.TAG_NODE, node.primary)
+
+
+def TestGroupTags(group):
+ """gnt-group tags"""
+ _TestTags(constants.TAG_NODEGROUP, group)
def TestInstanceTags(instance):
"""gnt-instance tags"""
- _TestTags(constants.TAG_INSTANCE, instance["name"])
+ _TestTags(constants.TAG_INSTANCE, instance.name)