Correcting the error messages of Volume Snapshot Table

Change-Id: I8d0e2879a9d2a76cf5173764035f690072a80c82
Closes-Bug: #1818791
This commit is contained in:
manchandavishal 2019-03-06 07:16:55 +00:00
parent bdf7e69222
commit beedc4e729
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class UpdateRow(tables.Row):
tenant = keystone.tenant_get(request, tenant_id)
snapshot.tenant_name = getattr(tenant, "name")
except Exception:
msg = _('Unable to retrieve volume project information.')
msg = _('Unable to retrieve volume snapshot project information.')
exceptions.handle(request, msg)
return snapshot

View File

@ -59,7 +59,8 @@ class SnapshotsView(tables.PagedTableMixin, tables.DataTableView):
tenants, has_more = keystone.tenant_list(self.request)
except Exception:
tenants = []
msg = _('Unable to retrieve volume project information.')
msg = _('Unable to retrieve project '
'information of volume snapshots.')
exceptions.handle(self.request, msg)
tenant_dict = dict((t.id, t) for t in tenants)