mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 02:53:18 +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) ||
|
if (ObjectUtils.anyNotNull(name, capacityIops, capacityBytes, url, isTagARule, tags) ||
|
||||||
MapUtils.isNotEmpty(details)) {
|
MapUtils.isNotEmpty(details)) {
|
||||||
result = _storageService.updateStoragePool(this);
|
result = _storageService.updateStoragePool(this);
|
||||||
|
} else {
|
||||||
|
result = _storageService.getStoragePool(getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enabled != null) {
|
if (enabled != null) {
|
||||||
|
|||||||
@ -251,7 +251,10 @@ class TestDirectDownloadTemplates(cloudstackTestCase):
|
|||||||
self.apiclient,
|
self.apiclient,
|
||||||
id=poolId
|
id=poolId
|
||||||
)
|
)
|
||||||
return local_pool[0].tags
|
if local_pool[0].tags:
|
||||||
|
return local_pool[0].tags
|
||||||
|
else:
|
||||||
|
return ""
|
||||||
|
|
||||||
def updateStoragePoolTags(self, poolId, tags):
|
def updateStoragePoolTags(self, poolId, tags):
|
||||||
StoragePool.update(
|
StoragePool.update(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user