summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/main.go b/main.go
index 8f23757..671c935 100644
--- a/main.go
+++ b/main.go
@@ -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()
}