Get auth token lazily
This addresses one of the comments from change ID Ia051f7c42aa3c0793cdadd5585e07c3220d5779d where it was suggested to get the auth token when we actually need it, and not before. Change-Id: I3fe485796a6057280933254e28ea6718e3a24d3d
This commit is contained in:
parent
5291e8f0da
commit
eeaf473029
@ -211,7 +211,6 @@ class OpenStackCloud(object):
|
||||
auth=keystone_auth,
|
||||
verify=self.verify,
|
||||
cert=self.cert)
|
||||
self._auth_token = self._keystone_session.get_token()
|
||||
except Exception as e:
|
||||
self.log.debug("keystone unknown issue", exc_info=True)
|
||||
raise OpenStackCloudException(
|
||||
|
Loading…
x
Reference in New Issue
Block a user