Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 5e41f59

Browse files
committed
Fix using virt-install --file (it's outright broken)
1 parent 5090bf5 commit 5e41f59

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

virt-install

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def parse_disk_option(guest, path, size):
168168

169169
if not devtype:
170170
devtype = virtinst.VirtualDisk.DEVICE_DISK
171-
ret = (abspath, voltuple, volinst, devtype, bus, ro, shared, size, sparse, cache)
171+
ret = (abspath, voltuple, volinst, devtype, bus, ro, shared, size, sparse,
172+
cache)
172173
logging.debug("parse_disk: returning %s" % str(ret))
173174
return ret
174175

@@ -178,9 +179,9 @@ def get_disk(disk, size, sparse, guest, hvm, conn, is_file_path):
178179
# Get disk parameters
179180
if is_file_path:
180181
(path, voltuple, volinst, device, bus, readOnly, shared, size,
181-
sparse) = \
182+
sparse, cache) = \
182183
(disk, None, None, virtinst.VirtualDisk.DEVICE_DISK, None, False,
183-
False, size, sparse)
184+
False, size, sparse, None)
184185
else:
185186
(path, voltuple, volinst,
186187
device, bus, readOnly, shared,

0 commit comments

Comments
 (0)