You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ta...@apache.org on 2014/09/22 13:03:50 UTC

git commit: updated refs/heads/master to 937aee3

Repository: cloudstack
Updated Branches:
  refs/heads/master 44e8fc47d -> 937aee34e


CLOUDSTACK-7579 Adding a method to base.py to update storage pool

Signed-off-by: SrikanteswaraRao Talluri <ta...@apache.org>


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

Branch: refs/heads/master
Commit: 937aee34eded1a795b4eff3b7ebb59b8fbbef568
Parents: 44e8fc4
Author: Prashant Kumar Mishra <pr...@citrix.com>
Authored: Fri Sep 19 13:22:00 2014 +0530
Committer: SrikanteswaraRao Talluri <ta...@apache.org>
Committed: Mon Sep 22 16:33:19 2014 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/lib/base.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/937aee34/tools/marvin/marvin/lib/base.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py
index 04217b2..b0dd6e2 100755
--- a/tools/marvin/marvin/lib/base.py
+++ b/tools/marvin/marvin/lib/base.py
@@ -2571,6 +2571,13 @@ class StoragePool:
             cmd.listall = True
         return(apiclient.findStoragePoolsForMigration(cmd))
 
+    @classmethod
+    def update(cls,apiclient, **kwargs):
+        """Update storage pool"""
+        cmd=updateStoragePool.updateStoragePoolCmd()
+        [setattr(cmd, k, v) for k, v in kwargs.items()]
+        return apiclient.updateStoragePool(cmd)
+
 class Network:
     """Manage Network pools"""