Merge pull request #670 from Luit/master
Fix error check in examples/custom-controller
This commit is contained in:
commit
f5d27bf175
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue