Commit f1222089 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Michael Hanselmann
Browse files

Fix iallocator for nodegroups with no tags



_ComputeNodeGroupData() raises error if a group has no tags
when list(gdata.tags) is invoked. Use “gdata.GetTags()” instead.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 37dfcacb
......@@ -458,7 +458,7 @@ class IAllocator(object):
"name": gdata.name,
"alloc_policy": gdata.alloc_policy,
"ipolicy": gmi.CalculateGroupIPolicy(cluster, gdata),
"tags": list(gdata.tags),
"tags": list(gdata.GetTags()),
})
for guuid, gdata in cfg.GetAllNodeGroupsInfo().items())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment