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