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