aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]utils/openstack_utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/openstack_utils.py b/utils/openstack_utils.py
index 75f06046..8e3272b8 100644..100755
--- a/utils/openstack_utils.py
+++ b/utils/openstack_utils.py
@@ -74,6 +74,10 @@ def get_credentials(service):
creds.update({
"endpoint_type": os.environ.get("OS_ENDPOINT_TYPE")
})
+ if os.getenv('OS_REGION_NAME') is not None:
+ creds.update({
+ "region_name": os.environ.get("OS_REGION_NAME")
+ })
cacert = os.environ.get("OS_CACERT")
if cacert is not None:
# each openstack client uses differnt kwargs for this