From c3c98259e570952eb4b2d157c43dcecd05dd08f2 Mon Sep 17 00:00:00 2001 From: chromerobv Date: Wed, 26 Aug 2015 12:35:33 -0700 Subject: [PATCH] changed match to search. was not working on some multiline content --- health_check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health_check b/health_check index 79a73f0..df5c463 100644 --- a/health_check +++ b/health_check @@ -108,7 +108,7 @@ def check_server_status(url, headers, timeout, expected_status, content = fp.read() fp.close() - if expected_regexp and not re.match(expected_regexp, content): + if expected_regexp and not re.search(expected_regexp, content): return False, 'Content did not match expected regexp.' return True, 'OK'