diff options
author | Thomas Hipp <thomashipp@gmail.com> | 2017-08-09 10:13:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-09 10:13:48 +0200 |
commit | 92ff08670041c50b22c380599585b9efca4000fb (patch) | |
tree | 1dd99aa7b63af48f53e561dd6fd219f14e45be1a | |
parent | d9c8d155c800a120c7f53931de002bb8220b80d3 (diff) | |
parent | 23ae32e09feda8a714811083f62910154981b870 (diff) | |
download | terraform-provider-libvirt-92ff08670041c50b22c380599585b9efca4000fb.tar terraform-provider-libvirt-92ff08670041c50b22c380599585b9efca4000fb.tar.gz |
Merge pull request #157 from monstermunchkin/fix/dhcp-host
fix XML name of DHCP host element
-rw-r--r-- | libvirt/utils_libvirt.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libvirt/utils_libvirt.go b/libvirt/utils_libvirt.go index 7918aac6..cc86b1ec 100644 --- a/libvirt/utils_libvirt.go +++ b/libvirt/utils_libvirt.go @@ -14,7 +14,11 @@ func getHostXMLDesc(ip, mac, name string) string { MAC: mac, Name: name, } - xml, err := xmlMarshallIndented(dd) + tmp := struct { + XMLName xml.Name `xml:"host"` + libvirtxml.NetworkDHCPHost + }{xml.Name{}, dd} + xml, err := xmlMarshallIndented(tmp) if err != nil { panic("could not marshall host") } |