1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Merge pull request #2712 from AlanCoding/easy_way

[openstack option 2] cherry pick only openstack critical fix for empty group
This commit is contained in:
Alan Rominger 2018-07-30 19:23:08 -04:00 committed by GitHub
commit ebfae01aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))