cherry pick only openstack critical fix for empty group

This commit is contained in:
AlanCoding 2018-07-30 11:35:21 -04:00
parent 5a7b519101
commit 415f91dca0
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -81,7 +81,8 @@ def get_groups_from_server(server_vars, namegroup=True):
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))