def _manager(self):
     return identity.Identity(self.admin)
Exemple #2
0
 def _manager(self):
     return identity.Identity(self.user)
Exemple #3
0
 def list(self):
     if not self.tenant_uuid:
         return []
     client = self._admin_required and self.admin or self.user
     project = identity.Identity(client).get_project(self.tenant_uuid)
     return [project]
Exemple #4
0
 def consume(cache, resource_id):
     if "client" not in cache:
         clients = osclients.Clients(self.credential)
         cache["client"] = identity.Identity(clients)
     getattr(cache["client"], func_name)(resource_id)