summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/main.go b/main.go
index 5ed64dd..8f6d507 100644
--- a/main.go
+++ b/main.go
@@ -81,19 +81,21 @@ func main() {
}
}
}
- if me.changed {
- if argv.Save {
- writeConfigFile()
- writeConfigFileDroplets()
- } else {
- log.Info("Not saving changes (use --save to save)")
+ if len(argv.Xml) != 0 {
+ if me.changed {
+ if argv.Save {
+ writeConfigFile()
+ writeConfigFileDroplets()
+ } else {
+ log.Info("Not saving changes (use --save to save)")
+ }
+ }
+ if !ok {
+ log.Info("adding xml files failed")
+ os.Exit(-1)
}
os.Exit(0)
}
- if !ok {
- log.Info("adding xml files failed")
- os.Exit(-1)
- }
/*
log.Info("command line hypervisors:", argv.Hosts)