Volume status must be available to extend
Change-Id: I3e149249db0a44be6531dc409176c698819be317 Closes-Bug: #1277570
This commit is contained in:
parent
0c4cf9aacf
commit
15c4d8330d
|
@ -100,7 +100,7 @@ class ExtendVolume(tables.LinkAction):
|
|||
return {"project_id": project_id}
|
||||
|
||||
def allowed(self, request, volume=None):
|
||||
return volume.status in ("available", "in-use")
|
||||
return volume.status == "available"
|
||||
|
||||
|
||||
class EditAttachments(tables.LinkAction):
|
||||
|
|
Loading…
Reference in New Issue