diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -34,9 +34,14 @@ func main() { // initialize the grid as unstable me.unstable = time.Now() - log.Info("create cluser for", argv.Hosts) + log.Info("command line hypervisors:", argv.Hosts) for _, name := range argv.Hosts { - h := addHypervisor(name) + h := findHypervisor(name) + if h != nil { + log.Info("command line hypervisor", name, "already in config file") + continue + } + h = addHypervisor(name) h.Active = true } @@ -52,7 +57,7 @@ func main() { // start the watchdog polling for each hypervisor for _, h := range me.hypers { - log.Info("starting watchdog here for hostname =", h.Hostname) + log.Info("starting polling on", h.Hostname) go h.NewWatchdog() } |
