[PATCH][TCK] Add listen type for graphic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For default domain build there is no graphic listen type so it will
report error. This patch will fix it with adding default type with
"address"
---
 lib/Sys/Virt/TCK/DomainBuilder.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lib/Sys/Virt/TCK/DomainBuilder.pm b/lib/Sys/Virt/TCK/DomainBuilder.pm
index dfd988e..dbfb65f 100644
--- a/lib/Sys/Virt/TCK/DomainBuilder.pm
+++ b/lib/Sys/Virt/TCK/DomainBuilder.pm
@@ -460,7 +460,8 @@ sub as_xml {
 	$w->emptyTag("autoport",
 		     autoport => $graphic->{autoport});
 	$w->emptyTag("listen",
-		     listen => $graphic->{listen});
+		     listen => $graphic->{listen},
+		     $graphic->{listen_type} ? (type => $graphic->{listen_type}) : type => "address");
 	$w->emptyTag("keymap",
 		     keymap => $graphic->{keymap});
 	$w->endTag("graphics");
-- 
1.7.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]