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:
David Shrewsbury 2015-02-04 13:12:29 -05:00
parent 5291e8f0da
commit eeaf473029

View File

@ -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(