remove tmp nginx-diff files

This commit is contained in:
Victor Unegbu 2017-03-07 08:23:19 -06:00
parent d2e5c43eaa
commit dfdcdfde0b

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