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.
This commit is contained in:
Brian Federle 2013-12-20 13:47:05 -08:00
parent 1832cf6660
commit 08a69b0053

View File

@ -1991,7 +1991,7 @@
allowedActions.push("createTemplate");
allowedActions.push("createVolume");
if (jsonObj.revertable && args.context.volumes[0].vmstate == "Stopped") {
if (jsonObj.revertable) {
allowedActions.push("revertSnapshot");
}
}