Skip to content

Commit d53b6db

Browse files
api/test: fix storage pool update with only id (#11897)
1 parent e90e436 commit d53b6db

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/storage/UpdateStoragePoolCmd.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public void execute() {
153153
if (ObjectUtils.anyNotNull(name, capacityIops, capacityBytes, url, isTagARule, tags) ||
154154
MapUtils.isNotEmpty(details)) {
155155
result = _storageService.updateStoragePool(this);
156+
} else {
157+
result = _storageService.getStoragePool(getId());
156158
}
157159

158160
if (enabled != null) {

test/integration/smoke/test_direct_download.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ def getCurrentStoragePoolTags(self, poolId):
251251
self.apiclient,
252252
id=poolId
253253
)
254-
return local_pool[0].tags
254+
if local_pool[0].tags:
255+
return local_pool[0].tags
256+
else:
257+
return ""
255258

256259
def updateStoragePoolTags(self, poolId, tags):
257260
StoragePool.update(

0 commit comments

Comments
 (0)