confirm the current hypervisor value doesn't get cleared out

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-01 09:53:52 -05:00
parent 173520b42e
commit 8b588eeba5
1 changed files with 3 additions and 0 deletions

View File

@ -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