summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go4
1 files changed, 2 insertions, 2 deletions
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 {