diff options
| author | Jeff Carr <[email protected]> | 2024-10-23 06:06:38 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-23 06:06:38 -0500 |
| commit | caf84a632694aad2a5295b38d3db79042f5fd167 (patch) | |
| tree | a9d6b7c9fdab319fef09afce64ae6ee25c27681b /main.go | |
| parent | e807365ee9e539befc627d1ed2f2c6f7038bed9c (diff) | |
added some xml files
Signed-off-by: Jeff Carr <[email protected]>
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) |
