Skip to content

Commit 3a578b9

Browse files
committed
ksushy: ensure we start from disk when no iso are defined
1 parent 1f45ada commit 3a578b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kvirt/providers/kvm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,6 +1447,7 @@ def start_from_cd(self, name):
14471447
root = ET.fromstring(xml)
14481448
newxml = ET.tostring(root).decode("utf-8")
14491449
newxml = newxml.replace('dev="hd"', 'dev="cdrom"')
1450+
newxml = newxml.replace('dev="network"', 'dev="hd"')
14501451
for element in list(root.iter('disk')):
14511452
if element.get('device') == 'cdrom':
14521453
iso_file = element.find('source').get('file') if element.find('source') is not None else None

0 commit comments

Comments
 (0)