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

Commit b6b4d0c

Browse files
committed
merge heads
2 parents 8048a65 + ed19b86 commit b6b4d0c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

virtinst/Guest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ def get_xml_config(self, disknode):
152152
ret += " <driver name='%(name)s'/>\n" % { "name": self.driver_name }
153153
else:
154154
ret += " <driver name='%(name)s' type='%(type)s'/>\n" % { "name": self.driver_name, "type": self.driver_type }
155-
if self.path is None:
156-
ret += " <source %(typeattr)s=''/>\n" % { "typeattr": typeattr }
157-
else:
155+
if self.path is not None:
158156
ret += " <source %(typeattr)s='%(disk)s'/>\n" % { "typeattr": typeattr, "disk": self.path }
159157
if self.target is not None:
160158
disknode = self.target

0 commit comments

Comments
 (0)