Fix Ironic Authentication exception
Since Train, it is now mandatory to pass a keystoneauth Session object into ``ironicclient.v1.client.Client`` and ``ironicclient.client.get_client`` This patch also cleans up useless code in ``get_ironic_client`` method. Change-Id: I3c45fc39cf6b5be493484ee97b1b212f060ebb05 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
parent
4823e2156a
commit
b1d1af33d4
|
@ -79,13 +79,9 @@ def get_heat_client(auth_variables):
|
|||
|
||||
|
||||
def get_ironic_client(auth_variables):
|
||||
session = get_auth_session(auth_variables)
|
||||
ironic_url = session.get_endpoint(service_type='baremetal',
|
||||
interface='public')
|
||||
return ironic_client.get_client(
|
||||
1,
|
||||
ironic_url=ironic_url,
|
||||
os_auth_token=auth_variables.get('os_auth_token')
|
||||
session=get_auth_session(auth_variables)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue