Commit bfa71054 by Milamber Committed by Rene Moser

Fix an issue when the cloudstack installation don't have any instance group

parent 92a25b34
...@@ -173,6 +173,7 @@ class CloudStackInventory(object): ...@@ -173,6 +173,7 @@ class CloudStackInventory(object):
} }
groups = self.cs.listInstanceGroups(projectid=project_id) groups = self.cs.listInstanceGroups(projectid=project_id)
if groups:
for group in groups['instancegroup']: for group in groups['instancegroup']:
group_name = group['name'] group_name = group['name']
if group_name and not group_name in data: if group_name and not group_name in data:
......
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