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):
|
||||
|
||||
if project_name and project_id:
|
||||
raise RuntimeError(
|
||||
'Only one of project_name or project_id should be set'
|
||||
project_name = None
|
||||
LOG.warning(
|
||||
"Only one of project_name or project_id should be set,"
|
||||
"project_name will be ignored"
|
||||
)
|
||||
|
||||
if username and user_id:
|
||||
raise RuntimeError(
|
||||
'Only one of username or user_id should be set'
|
||||
username = None
|
||||
LOG.warning(
|
||||
"Only one of username or user_id should be set,"
|
||||
"username will be ignored"
|
||||
)
|
||||
|
||||
auth = {}
|
||||
|
Reference in New Issue
Block a user