ready to try local import
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d51c4627f7
commit
26cd0f7709
12
poll.go
12
poll.go
|
@ -33,23 +33,23 @@ func (h *HyperT) pollHypervisor() {
|
|||
}
|
||||
state := fields[0]
|
||||
name := fields[1]
|
||||
start := fmt.Sprintf("%-9s %-20s", h.pb.Hostname, name)
|
||||
start := fmt.Sprintf("%-9s %-20.20s", h.pb.Hostname, name)
|
||||
d := me.cluster.FindDropletByName(name)
|
||||
if d == nil {
|
||||
log.Log(WARN, start, "local defined domain")
|
||||
log.Log(WARN, start, "local Running AddDropletLocal()")
|
||||
log.Log(WARN, start, "local Running AddDropletLocal()")
|
||||
log.Log(WARN, start, "local Running AddDropletLocal()")
|
||||
log.Log(WARN, start, "local Adding new entry with AddDropletLocal()")
|
||||
log.Log(WARN, start, "local Adding new entry with AddDropletLocal()")
|
||||
log.Log(WARN, start, "local Adding new entry with AddDropletLocal()")
|
||||
me.cluster.AddDropletLocal(name, h.pb.Hostname)
|
||||
return
|
||||
}
|
||||
h.lastDroplets[name] = time.Now()
|
||||
if state == "OFF" {
|
||||
if d.LocalOnly == "" {
|
||||
log.Log(WARN, start, "local duplicate defined (need to resolve this)")
|
||||
log.Log(WARN, start, "local domain is a duplicate (need to resolve this)")
|
||||
continue
|
||||
}
|
||||
log.Log(WARN, start, "local ready to import from hypervisor")
|
||||
log.Log(WARN, start, "local domain ready to import from hypervisor")
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue