diff options
| author | Jeff Carr <[email protected]> | 2024-10-27 02:55:08 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-27 02:55:08 -0500 |
| commit | 71f83d400048f6d4219793a76a3ffce16b8c63d8 (patch) | |
| tree | 5e1935b34d87cf27adfce3cb58140cb1059b7e87 /main.go | |
| parent | d0767eb9843fcdb9ab0e73200d8a9516e28c200c (diff) | |
prepare to validate spice ports
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |
