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 <tall...@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 <prashantkumar.mis...@citrix.com> Authored: Fri Sep 19 13:22:00 2014 +0530 Committer: SrikanteswaraRao Talluri <tall...@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"""