parent
247a24ccd2
commit
53a88a1c5c
|
@ -43,3 +43,11 @@ func ImportXML(domcfg *libvirtxml.Domain) (*pb.Droplet, []*pb.Event, error) {
|
|||
}
|
||||
return d, alle, nil
|
||||
}
|
||||
|
||||
func MergeXml(d *libvirtxml.Domain, xml string) error {
|
||||
err := d.Unmarshal(xml)
|
||||
if err != nil {
|
||||
log.Info("Marshal failed on file", xml)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue