Revision e68949b0
b/lib/ovf.py | ||
---|---|---|
938 | 938 |
prefix=disk_name, dir=self.output_dir) |
939 | 939 |
self.temp_file_manager.Add(new_disk_path) |
940 | 940 |
args = [ |
941 |
"qemu-img",
|
|
941 |
constants.QEMUIMG_PATH,
|
|
942 | 942 |
"convert", |
943 | 943 |
"-O", |
944 | 944 |
disk_format, |
... | ... | |
966 | 966 |
|
967 | 967 |
""" |
968 | 968 |
CheckQemuImg() |
969 |
args = ["qemu-img", "info", disk_path]
|
|
969 |
args = [constants.QEMUIMG_PATH, "info", disk_path]
|
|
970 | 970 |
run_result = utils.RunCmd(args, cwd=os.getcwd()) |
971 | 971 |
if run_result.failed: |
972 | 972 |
raise errors.OpPrereqError("Gathering info about the disk using qemu-img" |
... | ... | |
1343 | 1343 |
(disk_id, disk_desc["size"])) |
1344 | 1344 |
new_path = utils.PathJoin(self.output_dir, str(disk_id)) |
1345 | 1345 |
args = [ |
1346 |
"qemu-img",
|
|
1346 |
constants.QEMUIMG_PATH,
|
|
1347 | 1347 |
"create", |
1348 | 1348 |
"-f", |
1349 | 1349 |
"raw", |
Also available in: Unified diff