From 3ba9a5da209bf070a268b20df48a5a41f7b31109 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 22 Oct 2024 17:59:27 -0500 Subject: compiles Signed-off-by: Jeff Carr --- poll.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poll.go') diff --git a/poll.go b/poll.go index cf39378..41f0349 100644 --- a/poll.go +++ b/poll.go @@ -105,7 +105,7 @@ func clusterHealthy() (bool, string) { for _, d := range me.droplets { total += 1 - if d.ConfigState != "ON" { + if d.pb.StartState != "ON" { continue } dur := time.Since(d.lastpoll) // Calculate the elapsed time @@ -116,7 +116,7 @@ func clusterHealthy() (bool, string) { continue } if d.CurrentState != "ON" { - log.Info("BAD STATE", d.ConfigState, d.pb.Hostname, d.hname, "CurrentState =", d.CurrentState, shell.FormatDuration(dur)) + log.Info("BAD STATE", d.pb.StartState, d.pb.Hostname, d.hname, "CurrentState =", d.CurrentState, shell.FormatDuration(dur)) good = false failed += 1 } else { -- cgit v1.2.3