summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-24 23:22:52 -0600
committerJeff Carr <[email protected]>2024-11-24 23:22:52 -0600
commit5d9eb5add6183320f42147cb5109e78fed63c348 (patch)
tree809bda7eb93fd8a1e42e6ee71631116dd4e21027 /main.go
parent4e0dc17202883e630a3a57b2a1a4bffff3b268f2 (diff)
runs and reports versionsv0.0.9v0.0.8v0.0.7
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index b47b6eb..1f4b2a6 100644
--- a/main.go
+++ b/main.go
@@ -48,6 +48,10 @@ func main() {
me.hostname, _ = os.Hostname()
me.pollDelay = 10 * time.Second
me.machines = new(zoopb.Machines)
+ if err := me.machines.ConfigLoad(); err != nil {
+ log.Warn("load config failed", err)
+ os.Exit(-1)
+ }
me.targets = make(map[string]string) // keep track of what versions the machines should be running
me.upgrade = make(map[string]bool) // used to trigger upgrade attempts