From: Tollef Fog Heen Date: Sat, 30 Sep 2017 20:05:43 +0000 (+0200) Subject: Status code is an int X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=fd335d7829dd981612d3ceffdbbce27ef92708aa;p=mirror%2Fdsa-puppet.git Status code is an int --- 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