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

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
(cherry picked from commit 937aee34eded1a795b4eff3b7ebb59b8fbbef568)
This commit is contained in:
Prashant Kumar Mishra 2014-09-19 13:22:00 +05:30 committed by David Nalley
parent e0317eeec4
commit b771b6ee72

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