summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-30 13:17:04 -0500
committerJeff Carr <[email protected]>2024-10-30 13:17:04 -0500
commitbf52632cb79e91703079765cd8a85fc9f4098e92 (patch)
treebcf7f6453f0d1eef6f65fe42783604dc8187313a /main.go
parent2a18f506c7e37903e58b838e52b6b6554e7e039c (diff)
force filenames to match hostnames
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index 8bbdf6a..fef5833 100644
--- a/main.go
+++ b/main.go
@@ -78,7 +78,12 @@ func main() {
log.Info("todo: add flag to ignore. for now, fix problems in the config file.")
os.Exit(0)
}
- newe := ValidateDiskFilenames(me.cluster)
+ newe, err := ValidateDiskFilenames(me.cluster)
+ if err != nil {
+ log.Info(err)
+ os.Exit(-1)
+ }
+ // this is a new droplet. add it to the cluster
for _, e := range newe {
newEvents = append(newEvents, e)
}