From dfdcdfde0ba0b4b26677c1748edb155411b0d7c8 Mon Sep 17 00:00:00 2001 From: Victor Unegbu Date: Tue, 7 Mar 2017 08:23:19 -0600 Subject: [PATCH] remove tmp nginx-diff files --- controllers/nginx/pkg/cmd/controller/nginx.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/nginx/pkg/cmd/controller/nginx.go b/controllers/nginx/pkg/cmd/controller/nginx.go index 9d12f3b089..3f02756522 100644 --- a/controllers/nginx/pkg/cmd/controller/nginx.go +++ b/controllers/nginx/pkg/cmd/controller/nginx.go @@ -223,6 +223,7 @@ func (n NGINXController) isReloadRequired(data []byte) bool { glog.Infof("NGINX configuration diff\n") glog.Infof("%v", string(diffOutput)) } + os.Remove(tmpfile.Name()) return len(diffOutput) > 0 } return false