Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "refactor push_result_to_db print thing"
[functest.git]
/
utils
/
openstack_utils.py
diff --git
a/utils/openstack_utils.py
b/utils/openstack_utils.py
old mode 100644
(file)
new mode 100755
(executable)
index
75f0604
..
8e3272b
--- 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")
})
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
cacert = os.environ.get("OS_CACERT")
if cacert is not None:
# each openstack client uses differnt kwargs for this