IMAGE_CONTAINER = 'images'
astakos = AstakosClient(AUTHENTICATION_URL, TOKEN)
- USER_UUID = astakos.user_term('uuid')
+ USER_UUID = astakos.user_info['uuid']
PITHOS_URL = astakos.get_service_endpoints('object-store')['publicURL']
pithos = PithosClient(PITHOS_URL, TOKEN, USER_UUID, IMAGE_CONTAINER)
self.get_endpoints(), ep_type=service_type, ep_version_id=version)
return services[0]['endpoints'][0] if services else []
+ @property
+ def user_info(self):
+ return self.authenticate()['access']['user']
+
+ def user_term(self, term):
+ return self.user_info[term]
+
def _astakos_error(foo):
def wrap(self, *args, **kwargs):