Skip to content

Commit

Permalink
Merge pull request #3710 from nickzhq/detect_zeros
Browse files Browse the repository at this point in the history
qdevices: bug fixing
  • Loading branch information
YongxueHong committed Jun 27, 2023
2 parents eaaf51e + d532ac7 commit fdcfdde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virttest/qemu_devices/qdevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,10 @@ def _convert_blkdev_args(args):
:rtype: dict
"""
new_args = dict()
keep_original_type = ("detect-zeroes", )
for key, value in six.iteritems(args):
if key in keep_original_type:
continue
if value in ('on', 'yes'):
value = True
elif value in ('off', 'no'):
Expand Down

0 comments on commit fdcfdde

Please sign in to comment.