You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/12/20 22:48:24 UTC

git commit: updated refs/heads/master to 08a69b0

Updated Branches:
  refs/heads/master 1832cf666 -> 08a69b005


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.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/08a69b00
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/08a69b00
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/08a69b00

Branch: refs/heads/master
Commit: 08a69b00535caaa72a5727c595c2de80b8fce202
Parents: 1832cf6
Author: Brian Federle <br...@citrix.com>
Authored: Fri Dec 20 13:47:05 2013 -0800
Committer: Brian Federle <br...@citrix.com>
Committed: Fri Dec 20 13:48:21 2013 -0800

----------------------------------------------------------------------
 ui/scripts/storage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/08a69b00/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index ec91a5d..3e9c91d 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");
             }
         }