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:
@@ -39,12 +39,19 @@ def make_client(instance):
|
|||||||
interface=instance._interface,
|
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(
|
client = watcher_client(
|
||||||
endpoint=endpoint,
|
endpoint=endpoint,
|
||||||
session=instance.session,
|
session=instance.session,
|
||||||
auth_url=instance._auth_url,
|
auth_url=auth_url,
|
||||||
username=instance._username,
|
username=username,
|
||||||
password=instance._password,
|
password=password,
|
||||||
region_name=instance._region_name,
|
region_name=instance._region_name,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user