formally grid.wit.com. like black tie formal
This commit is contained in:
parent
3f10b49f04
commit
4d5c10676b
6
send.go
6
send.go
|
@ -9,7 +9,7 @@ import (
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var urlbase string = "http://zookeeper.wit.com:8080"
|
var urlbase string = "http://zookeeper.grid.wit.com:8080"
|
||||||
|
|
||||||
func send() {
|
func send() {
|
||||||
}
|
}
|
||||||
|
@ -62,10 +62,12 @@ func sendMachine() error {
|
||||||
for _, line := range strings.Split(test, "\n") {
|
for _, line := range strings.Split(test, "\n") {
|
||||||
switch line {
|
switch line {
|
||||||
case "upgrade":
|
case "upgrade":
|
||||||
|
log.Info("zookeeper is healthy")
|
||||||
|
case "apt update":
|
||||||
log.Info("machine upgrade now")
|
log.Info("machine upgrade now")
|
||||||
shell.Run([]string{"apt", "update"})
|
shell.Run([]string{"apt", "update"})
|
||||||
default:
|
default:
|
||||||
log.Info("GOT:", line)
|
log.Info("zookeeper is maybe not working GOT:", line)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue