From ff72c4f1e612a9a7ed3a690ed870dc1b3a010712 Mon Sep 17 00:00:00 2001 From: Luit van Drongelen Date: Fri, 28 Apr 2017 13:57:46 +0200 Subject: [PATCH] Fix error check in examples/custom-controller Fixes #669 --- examples/custom-controller/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/custom-controller/server.go b/examples/custom-controller/server.go index a0554fceb6..0c4649ec85 100644 --- a/examples/custom-controller/server.go +++ b/examples/custom-controller/server.go @@ -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 }