Skip to content

Commit

Permalink
Add analyzing conditions before remove disk in image_black_list
Browse files Browse the repository at this point in the history
Multi_disk: add analyzing conditions before remove disk in image_black_
list.

Signed-off-by: Boqiao Fu <[email protected]>
  • Loading branch information
fbq815 committed Nov 15, 2023
1 parent 9ce78ff commit fffc1da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qemu/tests/multi_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ def _get_data_disks():
matching_images = process.run(disk_check_cmd, ignore_status=True,
shell=True).stdout_text
for disk in image_stg_blacklist:
if not re.search(disk, matching_images):
if not re.search(disk, matching_images) and disk in \
indirect_image_blacklist:
indirect_image_blacklist.remove(disk)
params["indirect_image_blacklist"] = " ".join(indirect_image_blacklist)

Expand Down

0 comments on commit fffc1da

Please sign in to comment.