parent
132d0ac076
commit
247a24ccd2
|
@ -64,23 +64,6 @@ func setDiskFilename(domcfg *libvirtxml.Domain, filename string) {
|
|||
}
|
||||
}
|
||||
|
||||
func AddDefaultXml(d *libvirtxml.Domain, filename string) error {
|
||||
/*
|
||||
fullname := "resources/xml/" + filename + ".xml"
|
||||
pfile, err := resources.ReadFile(fullname)
|
||||
if err != nil {
|
||||
log.Println("ERROR:", err)
|
||||
return
|
||||
}
|
||||
*/
|
||||
|
||||
err := d.Unmarshal(filename)
|
||||
if err != nil {
|
||||
log.Info("Marshal failed on file", filename)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func ReadXml(filename string) (*libvirtxml.Domain, error) {
|
||||
log.Verbose("parse xml file:", filename)
|
||||
|
||||
|
|
Loading…
Reference in New Issue