From 937aee34eded1a795b4eff3b7ebb59b8fbbef568 Mon Sep 17 00:00:00 2001 From: Prashant Kumar Mishra Date: Fri, 19 Sep 2014 13:22:00 +0530 Subject: [PATCH] CLOUDSTACK-7579 Adding a method to base.py to update storage pool Signed-off-by: SrikanteswaraRao Talluri --- tools/marvin/marvin/lib/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py index 04217b2709f..b0dd6e2511e 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"""