summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 07:16:23 -0500
committerJeff Carr <[email protected]>2024-10-31 07:16:23 -0500
commit913b18737b9cb25636eea44355ddc680ff1c45c0 (patch)
tree2385e3b233f12f6f4500dae3524aa496248ca2ef /main.go
parentfb51876e8e0f1d223015acef5aab7d2345dfae4d (diff)
works enough that uptime works again
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 24a9dc2..69a8f45 100644
--- a/main.go
+++ b/main.go
@@ -54,12 +54,16 @@ func main() {
// read in the config file
me.cluster = new(pb.Cluster)
+ me.cluster.E = new(pb.Events)
if err := me.cluster.ConfigLoad(); err != nil {
log.Info("config load error", err)
os.Exit(-1)
}
for i, d := range me.cluster.Droplets {
+ if d.Current == nil {
+ d.Current = new(pb.Current)
+ }
d.Current.State = pb.DropletState_OFF
log.Info(i, "droplet", d.Hostname)
}