From bf52632cb79e91703079765cd8a85fc9f4098e92 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 30 Oct 2024 13:17:04 -0500 Subject: force filenames to match hostnames Signed-off-by: Jeff Carr --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.go') 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) } -- cgit v1.2.3