mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
api/test: fix storage pool update with only id (#11897)
This commit is contained in:
parent
e90e436ef8
commit
d53b6dbda4
@ -153,6 +153,8 @@ public class UpdateStoragePoolCmd extends BaseCmd {
|
||||
if (ObjectUtils.anyNotNull(name, capacityIops, capacityBytes, url, isTagARule, tags) ||
|
||||
MapUtils.isNotEmpty(details)) {
|
||||
result = _storageService.updateStoragePool(this);
|
||||
} else {
|
||||
result = _storageService.getStoragePool(getId());
|
||||
}
|
||||
|
||||
if (enabled != null) {
|
||||
|
||||
@ -251,7 +251,10 @@ class TestDirectDownloadTemplates(cloudstackTestCase):
|
||||
self.apiclient,
|
||||
id=poolId
|
||||
)
|
||||
return local_pool[0].tags
|
||||
if local_pool[0].tags:
|
||||
return local_pool[0].tags
|
||||
else:
|
||||
return ""
|
||||
|
||||
def updateStoragePoolTags(self, poolId, tags):
|
||||
StoragePool.update(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user