Skip to content

Commit 937aee3

Browse files
prashantkmSrikanteswaraRao Talluri
authored andcommitted
CLOUDSTACK-7579 Adding a method to base.py to update storage pool
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
1 parent 44e8fc4 commit 937aee3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/marvin/marvin/lib/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,6 +2571,13 @@ def listForMigration(cls, apiclient, **kwargs):
25712571
cmd.listall = True
25722572
return(apiclient.findStoragePoolsForMigration(cmd))
25732573

2574+
@classmethod
2575+
def update(cls,apiclient, **kwargs):
2576+
"""Update storage pool"""
2577+
cmd=updateStoragePool.updateStoragePoolCmd()
2578+
[setattr(cmd, k, v) for k, v in kwargs.items()]
2579+
return apiclient.updateStoragePool(cmd)
2580+
25742581
class Network:
25752582
"""Manage Network pools"""
25762583

0 commit comments

Comments
 (0)