diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 17:59:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 17:59:27 -0500 |
| commit | 3ba9a5da209bf070a268b20df48a5a41f7b31109 (patch) | |
| tree | 68fce648e4d64cbf72fa230c282cad41ce278822 /poll.go | |
| parent | 673bcc6cc9e4504ff707d6cef7575eb1ce152e7c (diff) | |
compiles
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
| -rw-r--r-- | poll.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |
