summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.go b/main.go
index a36c0bc..794ee83 100644
--- a/main.go
+++ b/main.go
@@ -48,7 +48,7 @@ func main() {
me.unstableTimeout = 17 * time.Second
// how long the cluster must be stable before new droplets can be started
- me.clusterStableDuration = 37 * time.Second
+ me.clusterStableDuration = 37 * time.Second
// read in the config file
me.cluster = new(pb.Cluster)
@@ -72,7 +72,10 @@ func main() {
var newEvents []*pb.Event
// sanity check the cluster & droplets
- ValidateDroplets(me.cluster, false)
+ if err := ValidateDroplets(me.cluster); err != nil {
+ log.Info("todo: add flag to ignore. for now, fix problems in the config file.")
+ os.Exit(0)
+ }
newe := ValidateDiskFilenames(me.cluster)
for _, e := range newe {
newEvents = append(newEvents, e)