summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go25
1 files changed, 5 insertions, 20 deletions
diff --git a/main.go b/main.go
index fe827eb..8bbdf6a 100644
--- a/main.go
+++ b/main.go
@@ -116,33 +116,18 @@ func main() {
// }
if me.changed {
- if argv.Save {
- if err := me.cluster.ConfigSave(); err != nil {
- log.Info("configsave error", err)
- os.Exit(-1)
- }
- // writeConfigFile()
- // writeConfigFileDroplets()
- log.Info("XML changes saved in protobuf config")
- os.Exit(0)
- } else {
- log.Info("Not saving changes (use --save to save)")
- os.Exit(0)
+ if err := me.cluster.ConfigSave(); err != nil {
+ log.Info("configsave error", err)
+ os.Exit(-1)
}
+ log.Info("XML changes saved in protobuf config")
+ os.Exit(0)
}
if len(argv.Xml) != 0 {
log.Info("No XML changes found")
os.Exit(0)
}
- if argv.Start != "" {
- b, result := Start(argv.Start)
- log.Warn("Start returned =", b, "result =", result)
- log.Println("Start() returned", b)
- log.Println("result:", result)
- os.Exit(0)
- }
-
// initialize each hypervisor
for _, pbh := range me.cluster.Hypervisors {
// this is a new unknown droplet (not in the config file)