Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Fix libvirt domain XML generation for tap driver
Browse files Browse the repository at this point in the history
When tap:aio was selected, an empty element was used without being
closed, generating the following error:

UnexpectedError: Problem creating the VM: at line 20: Opening and ending tag mismatch: driver line 17 and disk
  • Loading branch information
priteau authored and timf committed Jun 14, 2010
1 parent 382b34c commit 3c64b2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def toXML(self):
if self.driver:
# file is ignored at the moment
if self.driver == "tap:aio":
x.write(L(3, "<driver name='tap' type='aio'>"))
x.write(L(3, "<driver name='tap' type='aio' />"))

x.write(L(3, "<source file='%s' />" % self.source))
x.write(L(3, "<target dev='%s' />" % self.target))
Expand Down

0 comments on commit 3c64b2b

Please sign in to comment.