Extend the mistral context class
This change extends our mistral context class to ensure that we're passing everything that tripleo-common will expect, which includes deprecated objects. Depends-On: https://review.opendev.org/#/c/706196/ Change-Id: I9dae28d597be0d11acaa35026f5316db4d6d8ae1 Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
parent
0d92dc15f8
commit
5855d41262
@ -187,6 +187,17 @@ class MistralContext(object):
|
||||
def __init__(self, security_ctx=None):
|
||||
self.security = security_ctx
|
||||
|
||||
def __getattribute__(self, name):
|
||||
deprecated = [
|
||||
"auth_cacert", "auth_token", "auth_uri", "expires_at", "insecure",
|
||||
"is_target", "is_trust_scoped", "project_id", "project_name",
|
||||
"redelivered", "region_name", "service_catalog", "trust_id",
|
||||
"user_name"
|
||||
]
|
||||
if name in deprecated:
|
||||
return getattr(self.security, name)
|
||||
return super(MistralContext, self).__getattribute__(name)
|
||||
|
||||
|
||||
class MistralSecurityContext(object):
|
||||
def __init__(self, auth_uri=None, auth_cacert=None, insecure=None,
|
||||
|
Loading…
Reference in New Issue
Block a user