Skip to content

Commit 08a69b0

Browse files
committed
CLOUDSTACK-5544: Snapshot action filter: Remove check on volume state
Removes conditional check of volume state for snapshot action filter, since it causes a null pointer when trying to access view outside the storage section. Now only '.revertable' attribute is checked. Storage state should now be verified at the API level only.
1 parent 1832cf6 commit 08a69b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/scripts/storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@
19911991
allowedActions.push("createTemplate");
19921992
allowedActions.push("createVolume");
19931993

1994-
if (jsonObj.revertable && args.context.volumes[0].vmstate == "Stopped") {
1994+
if (jsonObj.revertable) {
19951995
allowedActions.push("revertSnapshot");
19961996
}
19971997
}

0 commit comments

Comments
 (0)