Cleanup
This commit is contained in:
parent
7285372c8f
commit
aad8cd663c
1 changed files with 3 additions and 2 deletions
|
@ -53,6 +53,8 @@ const (
|
||||||
|
|
||||||
defaultStatusModule statusModule = "default"
|
defaultStatusModule statusModule = "default"
|
||||||
vtsStatusModule statusModule = "vts"
|
vtsStatusModule statusModule = "vts"
|
||||||
|
|
||||||
|
errNoChild = "wait: no child processes"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -326,7 +328,7 @@ func (n NGINXController) testTemplate(cfg []byte) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
out, err := exec.Command(n.binary, "-t", "-c", tmpfile.Name()).CombinedOutput()
|
out, err := exec.Command(n.binary, "-t", "-c", tmpfile.Name()).CombinedOutput()
|
||||||
if err != nil {
|
if err != nil && err.Error() != errNoChild {
|
||||||
// this error is different from the rest because it must be clear why nginx is not working
|
// this error is different from the rest because it must be clear why nginx is not working
|
||||||
oe := fmt.Sprintf(`
|
oe := fmt.Sprintf(`
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -497,7 +499,6 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) ([]byte, er
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.Infof("%v", servers)
|
|
||||||
n.proxy.ServerList = servers
|
n.proxy.ServerList = servers
|
||||||
|
|
||||||
return content, nil
|
return content, nil
|
||||||
|
|
Loading…
Reference in a new issue