From cec509ae7f3156887a807a50a3e8d6982a236435 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 26 Oct 2024 20:53:52 -0500 Subject: doesn't deal with libvirtxml directly anymore Signed-off-by: Jeff Carr --- main.go | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index db6449c..9dcd3dc 100644 --- a/main.go +++ b/main.go @@ -52,19 +52,6 @@ func main() { os.Exit(-1) } - // me.cluster.Events = new(pb.Events) - // u := uuid.New() - // me.events.Uuid = u.String() - // me.events.Version = "dirty v1" - - /* - err := cfgfile() - if err != nil { - log.Warn("reading config file failed", err) - os.Exit(-1) - } - */ - for i, d := range me.cluster.Droplets { d.CurrentState = pb.DropletState_OFF log.Info(i, "droplet", d.Hostname) @@ -147,12 +134,6 @@ func main() { } // initialize each hypervisor for _, pbh := range me.cluster.Hypervisors { - /* - h := findHypervisor(pbh.Hostname) - if h != nil { - continue - } - */ // this is a new unknown droplet (not in the config file) h := new(HyperT) h.pb = pbh @@ -167,6 +148,8 @@ func main() { // start the watchdog polling for each hypervisor for _, h := range me.hypers { log.Info("starting polling on", h.pb.Hostname) + // inititialize the search directories on each hypervisor + h.sendDirs() go h.NewWatchdog() } -- cgit v1.2.3