Fix ObjectStorage Composite for SAIO Authing

* Moved attempted access of composite info to
  an else statement. This will fix an error
  if a SAIO is being used since it uses
  temp auth.

Change-Id: I934933e79ebbe52ffb36ad5b4a928848516034fa
This commit is contained in:
josh7810 2015-08-04 16:06:29 -05:00
parent 4ec3dfea15
commit e636eafff7

View File

@ -27,12 +27,12 @@ class ObjectStorageComposite(object):
self.config = ObjectStorageAPIConfig()
self.auth_info = self._auth_composite()
self.storage_url = self.auth_info.public_url
self.auth_token = self.auth_info.token_id
if self.auth_info.auth_strategy == 'saio_tempauth':
self.storage_url = self.auth_info.access_data.storage_url
self.auth_token = self.auth_info.access_data.auth_token
else:
self.storage_url = self.auth_info.public_url
self.auth_token = self.auth_info.token_id
self.client = ObjectStorageAPIClient(
self.storage_url, self.auth_token)