diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -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) |
