Skip to content

Commit 095a1b9

Browse files
authored
Merge pull request #347 from xcp-ng/ran-fix-test_diskless_kept
Robustify LINSTOR `_get_diskful_hosts` test to ignore OLD volumes
2 parents 5e53607 + 3b66cbf commit 095a1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/storage/linstor/test_linstor_sr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_diskless_kept(self, host, linstor_sr, vm_on_linstor_sr, storage_pool_na
186186
# "xcp/volume/{vdi_uuid}/volume-name": "{volume_name}"
187187
output = host.ssh([
188188
"linstor-kv-tool", "--dump-volumes", "-g", sr_group_name,
189-
"|", "grep", "volume-name", "|", "grep", vdi_uuid
189+
"|", "grep", "volume-name", "|", "grep", f"/{vdi_uuid}/"
190190
])
191191
volume_name = output.split(': ')[1].split('"')[1]
192192

0 commit comments

Comments
 (0)