diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-12-01 14:28:31 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-12-21 11:09:02 +0800 |
commit | bdbd22904733af311225a3315555bb39ea12ed55 (patch) | |
tree | fa057eb320b1656184b0ed822e903034ba1ab0d5 /doctor_tests/identity_auth.py | |
parent | 9e36d918fef054b8d23692c0ec8c25d7b0640c07 (diff) |
use keystone v3 API
Change-Id: Ia642279a99ad9bf014764337c8a5170e3c98e2f2
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'doctor_tests/identity_auth.py')
-rw-r--r-- | doctor_tests/identity_auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doctor_tests/identity_auth.py b/doctor_tests/identity_auth.py index 2586720c..eb046986 100644 --- a/doctor_tests/identity_auth.py +++ b/doctor_tests/identity_auth.py @@ -16,11 +16,11 @@ def get_identity_auth(username=None, password=None, project=None): auth_url = os.environ['OS_AUTH_URL'] username = username or os.environ['OS_USERNAME'] password = password or os.environ['OS_PASSWORD'] - user_domain_name = os.environ.get('OS_USER_DOMAIN_NAME') or 'default' + user_domain_name = os.environ.get('OS_USER_DOMAIN_NAME') or 'Default' user_domain_id = os.environ.get('OS_USER_DOMAIN_ID') or 'default' project_name = project or os.environ.get('OS_PROJECT_NAME') \ or os.environ.get('OS_TENANT_NAME') - project_domain_name = os.environ.get('OS_PROJECT_DOMAIN_NAME') or 'default' + project_domain_name = os.environ.get('OS_PROJECT_DOMAIN_NAME') or 'Default' project_domain_id = os.environ.get('OS_PROJECT_DOMAIN_ID') or 'default' loader = loading.get_plugin_loader('password') |