Fix creating freezer client with keystone auth session
Change-Id: I66e360ed36616a79bac24aca7ea364a0ed5aabe8
Closes-Bug: #1709608
(cherry picked from commit 85c5496e1d
)
This commit is contained in:
parent
b5d6b24814
commit
a4954dea42
|
@ -191,5 +191,5 @@ class Client(object):
|
|||
"""Validate that the client objects gets created correctly.
|
||||
:return: bool
|
||||
"""
|
||||
if self.opts.os_auth_url is None:
|
||||
if not self._session and self.opts.os_auth_url is None:
|
||||
raise Exception('OS_AUTH_URL should be provided.')
|
||||
|
|
|
@ -193,5 +193,5 @@ class Client(object):
|
|||
"""Validate that the client objects gets created correctly.
|
||||
:return: bool
|
||||
"""
|
||||
if self.opts.os_auth_url is None:
|
||||
if not self._session and self.opts.os_auth_url is None:
|
||||
raise Exception('OS_AUTH_URL should be provided.')
|
||||
|
|
Loading…
Reference in New Issue