From 08a69b00535caaa72a5727c595c2de80b8fce202 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Fri, 20 Dec 2013 13:47:05 -0800 Subject: [PATCH] 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. --- ui/scripts/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index ec91a5d72c8..3e9c91d66f4 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -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"); } }