Do not create group with empty name when region (optional argument) is 
not given in the openstack connection
This commit is contained in:
Artem Goncharov 2018-07-27 16:02:34 +02:00 committed by Sam Doran
commit 6667ec4474
2 changed files with 4 additions and 1 deletions

View file

@ -258,7 +258,8 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
groups.append(cloud)
# Create a group on region
groups.append(region)
if region:
groups.append(region)
# And one by cloud_region
groups.append("%s_%s" % (cloud, region))