From 415f91dca0f5a462544010e94a589fea687ff146 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Mon, 30 Jul 2018 11:35:21 -0400 Subject: [PATCH] cherry pick only openstack critical fix for empty group --- awx/plugins/inventory/openstack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/plugins/inventory/openstack.py b/awx/plugins/inventory/openstack.py index 30007e408c..05894c7bf3 100755 --- a/awx/plugins/inventory/openstack.py +++ b/awx/plugins/inventory/openstack.py @@ -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))