summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-01 09:53:52 -0500
committerJeff Carr <[email protected]>2024-11-01 09:53:52 -0500
commit8b588eeba5606099e7edd76131a20f58b1f36ae5 (patch)
tree2dc307bf11ee87c7070646f013746dfe7e078930 /poll.go
parent173520b42e1266687ee397302fada281d227b216 (diff)
confirm the current hypervisor value doesn't get cleared out
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go3
1 files changed, 3 insertions, 0 deletions
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