diff options
| author | Jeff Carr <[email protected]> | 2024-12-29 23:21:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-30 01:35:32 -0600 |
| commit | cea50e3541391a995752fefe6574ea999f3b5134 (patch) | |
| tree | ad11f79bfc10bd2f421df84a95b4e606343cf996 | |
| parent | 1abcc862fe85f5a49cff41a3bd0ed891908dfca4 (diff) | |
do targets some other wayv0.0.15
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | http.go | 4 | ||||
| -rw-r--r-- | main.go | 2 | ||||
| -rw-r--r-- | structs.go | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -85,7 +85,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) { if zood == nil { log.Info("machine", m.Hostname, "does not have zood installed") } else { - log.Info("zood version", zood.Version, "vs target version", v, "on machine", m.Hostname) + log.Info(fmt.Sprintf("zood version %s vs target version %s on machine %s", zood.Version, v, m.Hostname)) } } return @@ -116,7 +116,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) { if route == "/target" { log.HttpMode(w) defer log.HttpMode(nil) - me.targets[packname] = version + // me.targets[packname] = version log.Log(NOW, "setting package/version to ", packname, " ", version) return } @@ -52,7 +52,7 @@ func main() { log.Warn("load config failed", err) os.Exit(-1) } - me.targets = make(map[string]string) // keep track of what versions the machines should be running + // me.targets = make(map[string]string) // keep track of what versions the machines should be running me.upgrade = make(map[string]bool) // used to trigger upgrade attempts go NewWatchdog() @@ -17,6 +17,6 @@ type stuff struct { distro string // debian,redhat,gentoo,macos,wincrap packages *zoopb.Packages // installed packages and versions machines *zoopb.Machines // every machine that has reported itself to the zookeeper - targets map[string]string // what versions the machines should be running + // targets map[string]string // what versions the machines should be running upgrade map[string]bool // use this to trigger builds } |
