diff options
| author | Jeff Carr <[email protected]> | 2024-10-22 19:19:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-22 19:19:22 -0500 |
| commit | 448f4a0649d99c3d04096a6488193545751955ec (patch) | |
| tree | 0e957f241d4a60f940e710abf558f3b3e85091e3 /poll.go | |
| parent | e2d872f088be24e0a6355f6826625b129a965698 (diff) | |
dumped droplet file
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
| -rw-r--r-- | poll.go | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -48,10 +48,6 @@ func (h *HyperT) pollHypervisor() { d.CurrentState = "ON" d.lastpoll = time.Now() - // this means the droplet is still where it was before - if d.h.pb.Hostname == h.pb.Hostname { - continue - } if d.h == nil { // this means the droplet was in the config file @@ -65,6 +61,14 @@ func (h *HyperT) pollHypervisor() { } log.Log(EVENT, "new droplet", d.pb.Hostname, "on", h.pb.Hostname, "(in config file without preferred hypervisor)") + d.h = h + continue + } + + // this means the droplet is still where it was before + if d.h.pb.Hostname != h.pb.Hostname { + log.Log(EVENT, "droplet", d.h.pb.Hostname, "moved to", h.pb.Hostname) + continue } d.h = h } |
