Correcting the error messages of Volume Snapshot Table
Change-Id: I8d0e2879a9d2a76cf5173764035f690072a80c82 Closes-Bug: #1818791
This commit is contained in:
parent
bdf7e69222
commit
beedc4e729
|
@ -49,7 +49,7 @@ class UpdateRow(tables.Row):
|
||||||
tenant = keystone.tenant_get(request, tenant_id)
|
tenant = keystone.tenant_get(request, tenant_id)
|
||||||
snapshot.tenant_name = getattr(tenant, "name")
|
snapshot.tenant_name = getattr(tenant, "name")
|
||||||
except Exception:
|
except Exception:
|
||||||
msg = _('Unable to retrieve volume project information.')
|
msg = _('Unable to retrieve volume snapshot project information.')
|
||||||
exceptions.handle(request, msg)
|
exceptions.handle(request, msg)
|
||||||
|
|
||||||
return snapshot
|
return snapshot
|
||||||
|
|
|
@ -59,7 +59,8 @@ class SnapshotsView(tables.PagedTableMixin, tables.DataTableView):
|
||||||
tenants, has_more = keystone.tenant_list(self.request)
|
tenants, has_more = keystone.tenant_list(self.request)
|
||||||
except Exception:
|
except Exception:
|
||||||
tenants = []
|
tenants = []
|
||||||
msg = _('Unable to retrieve volume project information.')
|
msg = _('Unable to retrieve project '
|
||||||
|
'information of volume snapshots.')
|
||||||
exceptions.handle(self.request, msg)
|
exceptions.handle(self.request, msg)
|
||||||
|
|
||||||
tenant_dict = dict((t.id, t) for t in tenants)
|
tenant_dict = dict((t.id, t) for t in tenants)
|
||||||
|
|
Loading…
Reference in New Issue