cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/4.3 to bef63e2
Date Fri, 20 Dec 2013 21:48:03 GMT
Updated Branches:
  refs/heads/4.3 281d8323c -> bef63e206


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/bef63e20
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/bef63e20
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/bef63e20

Branch: refs/heads/4.3
Commit: bef63e206794d498d8c9e55d3de18791d8844f00
Parents: 281d832
Author: Brian Federle <brian.federle@citrix.com>
Authored: Fri Dec 20 13:47:05 2013 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Fri Dec 20 13:47:05 2013 -0800

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bef63e20/ui/scripts/storage.js
----------------------------------------------------------------------
diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js
index 9cf5fc8..7c3bb2a 100644
--- a/ui/scripts/storage.js
+++ b/ui/scripts/storage.js
@@ -1984,7 +1984,7 @@
             allowedActions.push("createTemplate");
             allowedActions.push("createVolume");
 
-            if (jsonObj.revertable && args.context.volumes[0].vmstate == "Stopped")
{
+            if (jsonObj.revertable) {
                 allowedActions.push("revertSnapshot");
             }
         }


Mime
View raw message