Status code is an int
authorTollef Fog Heen <tfheen@err.no>
Sat, 30 Sep 2017 20:05:43 +0000 (22:05 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 30 Sep 2017 20:05:43 +0000 (22:05 +0200)
modules/roles/files/mirror_health/mirror-health

index f70cf71..c2ef590 100755 (executable)
@@ -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