From b1742c0cb849e44483ed70e4cde82d492157bace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Thu, 12 Jul 2018 22:14:34 +0200 Subject: [PATCH] fix the custom probe --- Custom-HTTP-Probe/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Custom-HTTP-Probe/server.js b/Custom-HTTP-Probe/server.js index 5119fed..8b0f0e8 100644 --- a/Custom-HTTP-Probe/server.js +++ b/Custom-HTTP-Probe/server.js @@ -86,7 +86,7 @@ router.get("/probe/liveness",function(req,res){ }); router.get("/probe/custom",function(req,res){ - if (alive) { + if (alive && countdown <= 0) { res.type('application/json') .status(418) .send(JSON.stringify(getState()))