mirror of https://github.com/apache/cloudstack.git
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:
parent
44e8fc47db
commit
937aee34ed
|
|
@ -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"""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue