diff options
| author | Jeff Carr <[email protected]> | 2024-10-26 20:53:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-26 20:53:52 -0500 |
| commit | cec509ae7f3156887a807a50a3e8d6982a236435 (patch) | |
| tree | 8a8196fbc82c0221cc9a1fb52a17348c83a62e8c /main.go | |
| parent | 3c1efcba0e6d5757aea38b0c2067fdbb26be8105 (diff) | |
doesn't deal with libvirtxml directly anymore
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 21 |
1 files changed, 2 insertions, 19 deletions
@@ -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() } |
