fix mistral client failure
when project_name and project_id are provided at the same time, mistral client will ignore project_name, and if username and user_id are provided at the same time, username will be ignored. Change-Id: Ice720cafceb4904c218122c558c06346e9031650 Closes-Bug: #1785453
This commit is contained in:
@@ -97,13 +97,17 @@ class KeystoneAuthHandler(mistral_auth.AuthHandler):
|
|||||||
**kwargs):
|
**kwargs):
|
||||||
|
|
||||||
if project_name and project_id:
|
if project_name and project_id:
|
||||||
raise RuntimeError(
|
project_name = None
|
||||||
'Only one of project_name or project_id should be set'
|
LOG.warning(
|
||||||
|
"Only one of project_name or project_id should be set,"
|
||||||
|
"project_name will be ignored"
|
||||||
)
|
)
|
||||||
|
|
||||||
if username and user_id:
|
if username and user_id:
|
||||||
raise RuntimeError(
|
username = None
|
||||||
'Only one of username or user_id should be set'
|
LOG.warning(
|
||||||
|
"Only one of username or user_id should be set,"
|
||||||
|
"username will be ignored"
|
||||||
)
|
)
|
||||||
|
|
||||||
auth = {}
|
auth = {}
|
||||||
|
Reference in New Issue
Block a user