Merge pull request #899 from aledbf/fix-configmap-update

Fix nginx error check
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-06-23 09:57:14 -04:00 committed by GitHub
commit 6b85eb5498

View file

@ -536,9 +536,9 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
return err
}
o, e := exec.Command(n.binary, "-s", "reload", "-c", cfgPath).CombinedOutput()
o, err := exec.Command(n.binary, "-s", "reload", "-c", cfgPath).CombinedOutput()
if err != nil {
return fmt.Errorf("%v\n%v", e, string(o))
return fmt.Errorf("%v\n%v", err, string(o))
}
return nil