mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Fix issue in watchdog - not reading false config overrides.
This commit is contained in:
@ -136,9 +136,11 @@ func main() {
|
||||
http.HandleFunc("/", makeRequestHandler(&config))
|
||||
|
||||
if config.suppressLock == false {
|
||||
writeErr := ioutil.WriteFile("/tmp/.lock", []byte{}, 0660)
|
||||
path := "/tmp/.lock"
|
||||
log.Printf("Writing lock-file to: %s\n", path)
|
||||
writeErr := ioutil.WriteFile(path, []byte{}, 0660)
|
||||
if writeErr != nil {
|
||||
log.Panicf("Cannot write /tmp/.lock for healthcheck: %s \n", writeErr.Error())
|
||||
log.Panicf("Cannot write %s. Error: %s\n", path, writeErr.Error())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user