summaryrefslogtreecommitdiff
path: root/poll.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-01 02:00:46 -0500
committerJeff Carr <[email protected]>2024-11-01 02:00:46 -0500
commit83faa62e1835f2c674147cab282194ad0bcb117d (patch)
tree489a3ee433136607faf8b1f6659f7e89ca431844 /poll.go
parentca9ad75283333529b611d73acd9762d0fc36053b (diff)
last commit before import attempt
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'poll.go')
-rw-r--r--poll.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/poll.go b/poll.go
index 87bd4f3..46313eb 100644
--- a/poll.go
+++ b/poll.go
@@ -11,6 +11,15 @@ import (
"google.golang.org/protobuf/types/known/timestamppb"
)
+func findHypervisorByName(name string) *HyperT {
+ for _, h := range me.hypers {
+ if h.pb.Hostname == name {
+ return h
+ }
+ }
+ return nil
+}
+
func (h *HyperT) pollHypervisor() {
url := "http://" + h.pb.Hostname + ":2520/vms"
log.Log(POLL, "wget url =", url)