summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-25 15:46:49 -0500
committerJeff Carr <[email protected]>2024-10-25 15:46:49 -0500
commitb6dd67b73df2915d7c042a71ea95120de4c95529 (patch)
treeff9efefea9ae05e702add6e22a679b0948880cfb /main.go
parent7cc0bd9b2c85c24f71e4c1e471db7e6a1ccecb48 (diff)
fails on imports with duplicate mac addrs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index b90ce59..f38dded 100644
--- a/main.go
+++ b/main.go
@@ -60,6 +60,10 @@ func main() {
// parsing the libvirt xml file failed
log.Info("error:", filename, err)
ok = false
+ log.Info("readXml() error", filename)
+ log.Info("readXml() error", err)
+ log.Info("libvirt XML will have to be fixed by hand")
+ os.Exit(-1)
continue
}
// see if the libvirt xml droplet is already here
@@ -68,6 +72,10 @@ func main() {
// some error. probably UUID mismatch or hostname duplication
// this has to be fixed by hand
ok = false
+ log.Info("findDomain() error", filename)
+ log.Info("findDomain() error", err)
+ log.Info("libvirt XML will have to be fixed by hand")
+ os.Exit(-1)
continue
}
if d == nil {
@@ -78,6 +86,8 @@ func main() {
ok = false
log.Info("addDomainDroplet() error", filename)
log.Info("addDomainDroplet() error", err)
+ log.Info("libvirt XML will have to be fixed by hand")
+ os.Exit(-1)
}
} else {
// this droplet is already here