diff options
| author | Jeff Carr <[email protected]> | 2024-10-25 05:04:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-25 05:04:52 -0500 |
| commit | 178974e42fe6ca3517f7485413184cf17b188977 (patch) | |
| tree | 979b6459d8a1a230850d30fcb4329cca46f1a44e /libvirtxml.go | |
| parent | fb722a3dc95f77b868ce250d52d73ec8fba8c677 (diff) | |
cleaner xml processing
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'libvirtxml.go')
| -rw-r--r-- | libvirtxml.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libvirtxml.go b/libvirtxml.go index 2584a54..f4f8e4a 100644 --- a/libvirtxml.go +++ b/libvirtxml.go @@ -646,8 +646,17 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) { os.Exit(-1) } + final := string(updatedXML) + if final == "" { + // things seem pretty standard + return + } + // Print the updated XML to verify + log.Info("dumpNonStandardXML(domcfg) START") fmt.Println(string(updatedXML)) + log.Info("dumpNonStandardXML(domcfg) END") + me.changed = true // os.Exit(-1) } |
