Add the group_snapshot attribute to the snapshot in UpdateRow
On snpashot panel in admin dashboards, The group_snapshot attribute is required in the snapshot table, but it does not exist in UpdateRow. This patch Add the group_snapshot attribute to the snapshot Change-Id: I00fc431fa3c5b8da40e5b24507165a2f3dfead47 Closes-Bug: #1831435
This commit is contained in:
parent
acc36f4958
commit
f0149ee0db
@ -15,7 +15,6 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from horizon import exceptions
|
||||
from horizon import tables
|
||||
|
||||
from openstack_dashboard.api import cinder
|
||||
from openstack_dashboard.api import keystone
|
||||
|
||||
from openstack_dashboard.dashboards.project.snapshots \
|
||||
@ -35,12 +34,11 @@ class UpdateVolumeSnapshotStatus(tables.LinkAction):
|
||||
"update_snapshot_status"),)
|
||||
|
||||
|
||||
class UpdateRow(tables.Row):
|
||||
class UpdateRow(snapshots_tables.UpdateRow):
|
||||
ajax = True
|
||||
|
||||
def get_data(self, request, snapshot_id):
|
||||
snapshot = cinder.volume_snapshot_get(request, snapshot_id)
|
||||
snapshot._volume = cinder.volume_get(request, snapshot.volume_id)
|
||||
snapshot = super(UpdateRow, self).get_data(request, snapshot_id)
|
||||
snapshot.host_name = getattr(snapshot._volume,
|
||||
'os-vol-host-attr:host')
|
||||
tenant_id = getattr(snapshot._volume,
|
||||
|
Loading…
x
Reference in New Issue
Block a user