Commit 2711eb2b authored by Jürgen Haas's avatar Jürgen Haas

ansible-inventories/arocom#2898 Finalize health check

parent 64c3b786
......@@ -115,11 +115,11 @@ sub vcl_recv {
# Health Check
if (req.url == "/varnishcheck") {
return(synth(751, "OK!"));
#if (req.backend.healthy) {
# return(synth(751, "OK!"));
#} else {
# return(synth(752, "FAILED!"));
#}
if (std.healthy(req.backend_hint)) {
return(synth(751, "OK!"));
} else {
return(synth(752, "FAILED!"));
}
}
# Some generic URL manipulation, useful for all templates that follow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment