[PATCH go-xml] let disk source omitempty for ejecting cdrom/floppy

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

 



Signed-off-by: zhenwei.pi <zhenwei.pi@xxxxxxxxxxxxxxx>
---
 domain.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/domain.go b/domain.go
index bacab11..f9d567d 100644
--- a/domain.go
+++ b/domain.go
@@ -117,7 +117,7 @@ type DomainDisk struct {
 	Snapshot  string               `xml:"snapshot,attr,omitempty"`
 	Driver    *DomainDiskDriver    `xml:"driver"`
 	Auth      *DomainDiskAuth      `xml:"auth"`
-	Source    *DomainDiskSource    `xml:"source"`
+	Source    *DomainDiskSource    `xml:"source,omitempty"`
 	Target    *DomainDiskTarget    `xml:"target"`
 	IOTune    *DomainDiskIOTune    `xml:"iotune"`
 	Serial    string               `xml:"serial,omitempty"`
-- 
2.7.4

--
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