Skip to content

Commit

Permalink
Merge "allow errored volume to be deleted since nova api allows it now"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 15, 2012
2 parents b8754d5 + 3ab6377 commit f00f177
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 f00f177

Please sign in to comment.