From fd335d7829dd981612d3ceffdbbce27ef92708aa Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 30 Sep 2017 22:05:43 +0200 Subject: [PATCH] Status code is an int --- modules/roles/files/mirror_health/mirror-health | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/roles/files/mirror_health/mirror-health b/modules/roles/files/mirror_health/mirror-health index f70cf7162..c2ef59010 100755 --- a/modules/roles/files/mirror_health/mirror-health +++ b/modules/roles/files/mirror_health/mirror-health @@ -25,7 +25,7 @@ def retrieve_from_host(host, url): def last_modified(response): lm = 0 - if response.status_code == '200' and response.headers.get('last-modified'): + if response.status_code == 200 and response.headers.get('last-modified'): lm = calendar.timegm(parsedate(response.headers['last-modified'])) return lm -- 2.20.1