Skip to content

Commit 45ec6df

Browse files
committed
test: fix storage pool tags is not updated when test is done
1 parent 457e08c commit 45ec6df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)