ready to try local import

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-31 22:39:47 -05:00
parent d51c4627f7
commit 26cd0f7709
1 changed files with 6 additions and 6 deletions

12
poll.go
View File

@ -33,23 +33,23 @@ func (h *HyperT) pollHypervisor() {
} }
state := fields[0] state := fields[0]
name := fields[1] 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) d := me.cluster.FindDropletByName(name)
if d == nil { if d == nil {
log.Log(WARN, start, "local defined domain") log.Log(WARN, start, "local defined domain")
log.Log(WARN, start, "local Running AddDropletLocal()") log.Log(WARN, start, "local Adding new entry with AddDropletLocal()")
log.Log(WARN, start, "local Running AddDropletLocal()") log.Log(WARN, start, "local Adding new entry with AddDropletLocal()")
log.Log(WARN, start, "local Running AddDropletLocal()") log.Log(WARN, start, "local Adding new entry with AddDropletLocal()")
me.cluster.AddDropletLocal(name, h.pb.Hostname) me.cluster.AddDropletLocal(name, h.pb.Hostname)
return return
} }
h.lastDroplets[name] = time.Now() h.lastDroplets[name] = time.Now()
if state == "OFF" { if state == "OFF" {
if d.LocalOnly == "" { 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 continue
} }
log.Log(WARN, start, "local ready to import from hypervisor") log.Log(WARN, start, "local domain ready to import from hypervisor")
continue continue
} }