1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Milamber 2015-01-03 18:57:55 +00:00 committed by Rene Moser
parent 92a25b340b
commit bfa71054f5

View file

@ -173,6 +173,7 @@ class CloudStackInventory(object):
}
groups = self.cs.listInstanceGroups(projectid=project_id)
if groups:
for group in groups['instancegroup']:
group_name = group['name']
if group_name and not group_name in data: