diff options
Diffstat (limited to 'poll.go')
| -rw-r--r-- | poll.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -77,9 +77,17 @@ func (h *HyperT) pollHypervisor() { continue } + // if this is blank, the droplet has probably never booted yet + if d.CurrentHypervisor == "" { + d.CurrentHypervisor = h.pb.Hostname + continue + } + // this means the droplet has moved if d.CurrentHypervisor != h.pb.Hostname { log.Log(EVENT, "droplet", d.Hostname, "moved to", h.pb.Hostname) + // record the droplet migrated (or booted somewhere else? recording this is a work in progress) + me.cluster.DropletMoved(d, h.pb) continue } d.CurrentHypervisor = h.pb.Hostname |
