Merge pull request #391 from victoru/remove-tmp-nginx-diff-files

remove tmp nginx-diff files
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-03-07 13:52:25 -03:00 committed by GitHub
commit 43fd1d9253

View file

@ -223,6 +223,7 @@ func (n NGINXController) isReloadRequired(data []byte) bool {
glog.Infof("NGINX configuration diff\n") glog.Infof("NGINX configuration diff\n")
glog.Infof("%v", string(diffOutput)) glog.Infof("%v", string(diffOutput))
} }
os.Remove(tmpfile.Name())
return len(diffOutput) > 0 return len(diffOutput) > 0
} }
return false return false