From 8b588eeba5606099e7edd76131a20f58b1f36ae5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Nov 2024 09:53:52 -0500 Subject: [PATCH] confirm the current hypervisor value doesn't get cleared out Signed-off-by: Jeff Carr --- poll.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/poll.go b/poll.go index 31579f7..3fb7f5d 100644 --- a/poll.go +++ b/poll.go @@ -54,6 +54,9 @@ func (h *HyperT) pollHypervisor() { start := d.SprintHeader() h.lastDroplets[name] = time.Now() if state == "OFF" { + if d.Current.Hypervisor == "" { + d.Current.Hypervisor = h.pb.Hostname + } if d.LocalOnly == "" { log.Log(WARN, start, "local domain is a duplicate (need to resolve this)") continue