summaryrefslogtreecommitdiff
path: root/libvirtxml.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-25 19:16:44 -0500
committerJeff Carr <[email protected]>2024-10-25 19:16:44 -0500
commit030af1bcfb7dad880a9fdf4286432fc36d1bf251 (patch)
treeae093e875206c32d771c0a52f651ee57380b46da /libvirtxml.go
parenta5eee861ea52fb0a33827fed3770f383aaeca03a (diff)
check for duplicate disk names
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'libvirtxml.go')
-rw-r--r--libvirtxml.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvirtxml.go b/libvirtxml.go
index b40c3a1..38a90a1 100644
--- a/libvirtxml.go
+++ b/libvirtxml.go
@@ -376,7 +376,10 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) (string, error) {
// this is probably something about what kind of OS you might be running
// todo: get this directly from the disk image
if domcfg.Metadata != nil {
- fmt.Printf("Not saving Domain.Metadata: %+v\n", domcfg.Metadata)
+ var s string
+ s = domcfg.Metadata.XML
+ log.Info("Not saving Domain.Metadata.XML:", s)
+ log.Info("todo: get this from disk image")
domcfg.Metadata = nil
}