From 62bbcb5c9c24a1801c68ca5f2ec8a03c13b35ff1 Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Mon, 23 Apr 2018 13:45:26 +0800 Subject: bugfix: certificate for https for MCP in baremetal In Mcp baremetal env, doctor test is always failed because of ssl certificate for https. Change-Id: Ia443c6463fe177ff4e1ab5a86429750fbd23740c Signed-off-by: dongwenjuan --- doctor_tests/identity_auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doctor_tests') diff --git a/doctor_tests/identity_auth.py b/doctor_tests/identity_auth.py index 0d429597..62b45ede 100644 --- a/doctor_tests/identity_auth.py +++ b/doctor_tests/identity_auth.py @@ -40,4 +40,5 @@ def get_session(auth=None): """Get a user credentials auth session.""" if auth is None: auth = get_identity_auth() - return session.Session(auth=auth) + return session.Session(auth=auth, + verify=os.environ.get('OS_CACERT')) -- cgit 1.2.3-korg