python-openstackclient ClientManager interface changed
I update the watcher client plugin to correctly used ClientManager auth parameters Change-Id: Ie2e4db3b63ea1671147a407480ce0d2569d5b057 Closes-bug: #1625643
This commit is contained in:
parent
ad4ee3fcc7
commit
a48a9213f0
@ -39,12 +39,19 @@ def make_client(instance):
|
||||
interface=instance._interface,
|
||||
)
|
||||
|
||||
auth_url = instance._auth_url \
|
||||
if hasattr(instance, '_auth_url') else instance.auth.auth_url
|
||||
username = instance._username \
|
||||
if hasattr(instance, '_username') else instance.auth._username
|
||||
password = instance._password \
|
||||
if hasattr(instance, '_password') else instance.auth._password
|
||||
|
||||
client = watcher_client(
|
||||
endpoint=endpoint,
|
||||
session=instance.session,
|
||||
auth_url=instance._auth_url,
|
||||
username=instance._username,
|
||||
password=instance._password,
|
||||
auth_url=auth_url,
|
||||
username=username,
|
||||
password=password,
|
||||
region_name=instance._region_name,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user