confirm the current hypervisor value doesn't get cleared out
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
173520b42e
commit
8b588eeba5
3
poll.go
3
poll.go
|
@ -54,6 +54,9 @@ func (h *HyperT) pollHypervisor() {
|
||||||
start := d.SprintHeader()
|
start := d.SprintHeader()
|
||||||
h.lastDroplets[name] = time.Now()
|
h.lastDroplets[name] = time.Now()
|
||||||
if state == "OFF" {
|
if state == "OFF" {
|
||||||
|
if d.Current.Hypervisor == "" {
|
||||||
|
d.Current.Hypervisor = h.pb.Hostname
|
||||||
|
}
|
||||||
if d.LocalOnly == "" {
|
if d.LocalOnly == "" {
|
||||||
log.Log(WARN, start, "local domain is a duplicate (need to resolve this)")
|
log.Log(WARN, start, "local domain is a duplicate (need to resolve this)")
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue