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

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Prashant Kumar Mishra 2014-09-19 13:22:00 +05:30 committed by SrikanteswaraRao Talluri
parent 44e8fc47db
commit 937aee34ed
1 changed files with 7 additions and 0 deletions

View File

@ -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"""