Fix an issue when the cloudstack installation don't have any instance group
This commit is contained in:
parent
92a25b340b
commit
bfa71054f5
1 changed files with 7 additions and 6 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue