works enough that uptime works again

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-31 07:16:23 -05:00
parent fb51876e8e
commit 913b18737b
1 changed files with 4 additions and 0 deletions

View File

@ -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)
}