Skip to content

Commit

Permalink
Merge pull request #670 from Luit/master
Browse files Browse the repository at this point in the history
Fix error check in examples/custom-controller
  • Loading branch information
aledbf committed Apr 28, 2017
2 parents 4555a64 + ff72c4f commit f5d27bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/custom-controller/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f5d27bf

Please sign in to comment.