summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-22 16:34:30 -0500
committerJeff Carr <[email protected]>2025-09-22 16:34:30 -0500
commit254e496abfe30d275a5caa4925e2359dea427f93 (patch)
treed0597f3bf437362c31a751390489d2e67bd26aaa /main.go
parentaf7984a887cc583fe46edcc3e00fd71e6da0e627 (diff)
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 8362933..a8a612d 100644
--- a/main.go
+++ b/main.go
@@ -33,9 +33,12 @@ func main() {
me.hostname, _ = os.Hostname()
me.pollDelay = time.Hour
me.machines = zoopb.NewMachines()
- if err := me.machines.ConfigLoad(); err != nil {
+ if fpath, err := me.machines.ConfigLoad(); err != nil {
log.Warn("load config failed", err)
- os.Exit(-1)
+ me.machinesfile = fpath
+ // os.Exit(-1)
+ } else {
+ me.machinesfile = fpath
}
if argv.List != nil {
log.Info("do list here")