Esempio n. 1
0
 def get_object(self, *args, **kwargs):
     tenant_id = kwargs['tenant_id']
     try:
         return api.tenant_get(self.request, tenant_id)
     except Exception as e:
         LOG.exception('Error fetching tenant with id "%s"' % tenant_id)
         messages.error(request, _('Unable to update tenant: %s')
                                   % e.message)
         raise http.Http404("Tenant with ID %s not found." % tenant_id)
Esempio n. 2
0
 def get_object(self, tenant_id):
     return api.tenant_get(self.request, tenant_id)