Merge pull request #670 from Luit/master

Fix error check in examples/custom-controller
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-04-28 09:54:35 -03:00 committed by GitHub
commit f5d27bf175

View file

@ -39,10 +39,9 @@ func (dc DummyController) SetConfig(cfgMap *api.ConfigMap) {
func (dc DummyController) Reload(data []byte) ([]byte, bool, error) {
out, err := exec.Command("echo", string(data)).CombinedOutput()
if err != nil {
log.Printf("Reloaded new config %s", out)
} else {
return out, false, err
}
log.Printf("Reloaded new config %s", out)
return out, true, err
}