Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-01 06:21:27 -05:00
parent 247a24ccd2
commit 53a88a1c5c
1 changed files with 8 additions and 0 deletions

View File

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