api/test: fix storage pool update with only id (#11897)

This commit is contained in:
Wei Zhou 2025-11-03 15:25:09 +01:00 committed by GitHub
parent e90e436ef8
commit d53b6dbda4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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(