Do not create group with empty name when region (optional argument) is 
not given in the openstack connection
pull/43359/head
Artem Goncharov 6 years ago committed by Sam Doran
parent 605a90dfeb
commit 6667ec4474

@ -0,0 +1,2 @@
bugfixes:
- plugins/inventory/openstack.py - Do not create group with empty name if region is not set

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

Loading…
Cancel
Save