image_utils: Use QEMU_IMG_FORCE_SHARE_VERSION constant

Use the constant defined for this version instead
of hard-coding the version number in the check.

Change-Id: Ie90092aaa05f4670fe114f3d13f752feb7260c8f
This commit is contained in:
Eric Harney 2018-10-17 15:36:51 -04:00
parent 367e704614
commit ca11345dcc
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ def get_qemu_img_version():
def qemu_img_supports_force_share():
return get_qemu_img_version() >= [2, 10, 0]
return get_qemu_img_version() >= QEMU_IMG_MIN_FORCE_SHARE_VERSION
def _get_qemu_convert_luks_cmd(src, dest, out_format, src_format=None,