[libvirt] [PATCH go-xml 1/4] doc: Handle conn.LookupDomainByName() error

Philipp Hahn hahn at univention.de
Thu Nov 21 16:18:03 UTC 2019


Signed-off-by: Philipp Hahn <hahn at univention.de>
---
 doc.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc.go b/doc.go
index 2886c79..f97f2eb 100644
--- a/doc.go
+++ b/doc.go
@@ -51,7 +51,7 @@
 //  )
 //
 //  conn, err := libvirt.NewConnect("qemu:///system")
-//  dom := conn.LookupDomainByName("demo")
+//  dom, err := conn.LookupDomainByName("demo")
 //  xmldoc, err := dom.GetXMLDesc(0)
 //
 //  domcfg := &libvirtxml.Domain{}
-- 
2.20.1





More information about the libvir-list mailing list