mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
1832cf6660
commit
08a69b0053
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user