[libvirt-go-xml PATCH] Make @Path of UNIX chr device source optional

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

 



According to the libvirt RNG schema, @path is an optional attribute for
the character source element, so we should be okay if it was omitted.

Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
---
 domain.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/domain.go b/domain.go
index a964cc8..a1a3fcb 100644
--- a/domain.go
+++ b/domain.go
@@ -735,7 +735,7 @@ type DomainChardevSourceTCP struct {
 
 type DomainChardevSourceUNIX struct {
 	Mode      string                        `xml:"mode,attr,omitempty"`
-	Path      string                        `xml:"path,attr"`
+	Path      string                        `xml:"path,attr,omitempty"`
 	Reconnect *DomainChardevSourceReconnect `xml:"reconnect"`
 	SecLabel  []DomainDeviceSecLabel        `xml:"seclabel"`
 }
-- 
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