X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=utils%2Fopenstack_utils.py;h=8e3272b8afc820caefa1d251dbe14adb3eb7b001;hb=835e6b5e54693f9a8439325f8c70aeb878ffc800;hp=75f06046a79b736de5009d9f532f47676ea01894;hpb=c40bdf5eca9230d61b7d7749d5bfbc09c8a01262;p=functest.git diff --git a/utils/openstack_utils.py b/utils/openstack_utils.py old mode 100644 new mode 100755 index 75f06046a..8e3272b8a --- 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