Skip to content
Snippets Groups Projects
Commit e68949b0 authored by Agata Murawska's avatar Agata Murawska
Browse files

ovfconverter: use qemu-img path from constants


Signed-off-by: default avatarAgata Murawska <agatamurawska@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 73ebb9ff
No related branches found
No related tags found
No related merge requests found
......@@ -938,7 +938,7 @@ class Converter(object):
prefix=disk_name, dir=self.output_dir)
self.temp_file_manager.Add(new_disk_path)
args = [
"qemu-img",
constants.QEMUIMG_PATH,
"convert",
"-O",
disk_format,
......@@ -966,7 +966,7 @@ class Converter(object):
"""
CheckQemuImg()
args = ["qemu-img", "info", disk_path]
args = [constants.QEMUIMG_PATH, "info", disk_path]
run_result = utils.RunCmd(args, cwd=os.getcwd())
if run_result.failed:
raise errors.OpPrereqError("Gathering info about the disk using qemu-img"
......@@ -1343,7 +1343,7 @@ class OVFImporter(Converter):
(disk_id, disk_desc["size"]))
new_path = utils.PathJoin(self.output_dir, str(disk_id))
args = [
"qemu-img",
constants.QEMUIMG_PATH,
"create",
"-f",
"raw",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment