Skip to content

Commit

Permalink
allow errored volume to be deleted since nova api allows it now
Browse files Browse the repository at this point in the history
 * fixes bug 955704
 * related nova changes at https://review.openstack.org/5342

Change-Id: I10aa598a3bfbc63bade757972c09db43377a737b
  • Loading branch information
andycjw committed Mar 15, 2012
1 parent 42c4715 commit 3ab6377
Showing 1 changed file with 0 additions and 9 deletions.
Expand Up @@ -43,15 +43,6 @@ def allowed(self, request, volume=None):
return volume.status in DELETABLE_STATES
return True

def update(self, request, volume=None):
# TODO(gabriel): This can be removed once the Nova Volume API supports
# deleting volumes in error states.
if volume and getattr(volume, "status", None) == "error":
self.classes += ("disabled",)
self.attrs['disabled'] = 'disabled'
self.attrs['title'] = _("Volumes in error states cannot be "
"deleted via the Nova API.")


class CreateVolume(tables.LinkAction):
name = "create"
Expand Down

0 comments on commit 3ab6377

Please sign in to comment.