works enough that uptime works again
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
fb51876e8e
commit
913b18737b
4
main.go
4
main.go
|
@ -54,12 +54,16 @@ func main() {
|
||||||
|
|
||||||
// read in the config file
|
// read in the config file
|
||||||
me.cluster = new(pb.Cluster)
|
me.cluster = new(pb.Cluster)
|
||||||
|
me.cluster.E = new(pb.Events)
|
||||||
if err := me.cluster.ConfigLoad(); err != nil {
|
if err := me.cluster.ConfigLoad(); err != nil {
|
||||||
log.Info("config load error", err)
|
log.Info("config load error", err)
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, d := range me.cluster.Droplets {
|
for i, d := range me.cluster.Droplets {
|
||||||
|
if d.Current == nil {
|
||||||
|
d.Current = new(pb.Current)
|
||||||
|
}
|
||||||
d.Current.State = pb.DropletState_OFF
|
d.Current.State = pb.DropletState_OFF
|
||||||
log.Info(i, "droplet", d.Hostname)
|
log.Info(i, "droplet", d.Hostname)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue