[Pkg-libvirt-commits] [libguestfs] 193/266: v2v: -o libvirt: Fix <features> XML in output.
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:42:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.
commit e112e9a7b2eaa9d75acc6e722e73f3ae377ab9f0
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Wed Aug 27 14:35:08 2014 +0100
v2v: -o libvirt: Fix <features> XML in output.
It was writing each feature as PCData (ie. text), not as a separate
element, resulting in corrupt <features> output.
---
v2v/output_libvirt.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/v2v/output_libvirt.ml b/v2v/output_libvirt.ml
index d9dfbfc..5621c0b 100644
--- a/v2v/output_libvirt.ml
+++ b/v2v/output_libvirt.ml
@@ -188,7 +188,7 @@ let create_libvirt_xml ?pool source targets guestcaps =
e "os" [] [
e "type" ["arch", source.s_arch] [PCData "hvm"];
];
- e "features" [] (List.map (fun s -> PCData s) features);
+ e "features" [] (List.map (fun s -> e s [] []) features);
e "on_poweroff" [] [PCData "destroy"];
e "on_reboot" [] [PCData "restart"];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list