[PATCH console-proxy 3/6] Adapt to API change for dom.Devices.{Serials, Console}

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

 



Follow
> commit d44fdf9badbb798949ab9f82ef516a2fd36d8b55
> Author: Daniel P. Berrange <berrange@xxxxxxxxxx>
> Date:   Tue Nov 28 11:50:06 2017 +0000
>
>     Generalize protocol handling for chardev sources

Signed-off-by: Philipp Hahn <hahn@xxxxxxxxxxxxx>
---
 cmd/virtconsoleresolveradm/cmd/enable.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/virtconsoleresolveradm/cmd/enable.go b/cmd/virtconsoleresolveradm/cmd/enable.go
index 1a4a12d..ebad497 100644
--- a/cmd/virtconsoleresolveradm/cmd/enable.go
+++ b/cmd/virtconsoleresolveradm/cmd/enable.go
@@ -174,14 +174,14 @@ func doEnable(cmd *cobra.Command, args []string) {
 	}
 
 	for idx, chardev := range domcfg.Devices.Serials {
-		if chardev.Type == "tcp" {
+		if chardev.Source.TCP != nil {
 			meta.Consoles = append(meta.Consoles,
 				createConsole("serial", idx, conn, domname, domuuid))
 		}
 	}
 
 	for idx, chardev := range domcfg.Devices.Consoles {
-		if chardev.Type == "tcp" {
+		if chardev.Source.TCP != nil {
 			meta.Consoles = append(meta.Consoles,
 				createConsole("console", idx, conn, domname, domuuid))
 		}
-- 
2.20.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]

  Powered by Linux