Status code is an int
[mirror/dsa-puppet.git] / 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