Skip to content

Commit

Permalink
Merge "Do not crash when deleting image or volume with no name" into …
Browse files Browse the repository at this point in the history
…stable/essex
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 29, 2012
2 parents f862d9e + 8889311 commit 648b078
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -47,6 +47,7 @@ Tihomir Trifonov <t.trifonov@gmail.com>
Todd Willey <todd@ansolabs.com>
Tomasz 'Zen' Napierala <tomasz@napierala.org>
Tres Henry <tres@treshenry.net>
Vincent Untz <vuntz@suse.com>
Vishvananda Ishaya <vishvananda@gmail.com>
Yuriy Taraday <yorik.sar@gmail.com>
ZhongYue Luo <lzyeval@gmail.com>
Expand Down
3 changes: 3 additions & 0 deletions horizon/dashboards/nova/images_and_snapshots/images/tables.py
Expand Up @@ -100,3 +100,6 @@ class Meta:
table_actions = (DeleteImage,)
row_actions = (LaunchImage, EditImage, DeleteImage)
pagination_param = "image_marker"

def get_object_display(self, obj):
return obj.name or obj.id
Expand Up @@ -119,7 +119,7 @@ class VolumesTableBase(tables.DataTable):
status_choices=STATUS_CHOICES)

def get_object_display(self, obj):
return obj.display_name
return obj.display_name or obj.id


class VolumesTable(VolumesTableBase):
Expand Down

0 comments on commit 648b078

Please sign in to comment.