mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
e0317eeec4
commit
b771b6ee72
@ -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…
x
Reference in New Issue
Block a user