projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd4cdc4
)
Status code is an int
author
Tollef Fog Heen
<tfheen@err.no>
Sat, 30 Sep 2017 20:05:43 +0000
(22:05 +0200)
committer
Tollef Fog Heen
<tfheen@err.no>
Sat, 30 Sep 2017 20:05:43 +0000
(22:05 +0200)
modules/roles/files/mirror_health/mirror-health
patch
|
blob
|
history
diff --git
a/modules/roles/files/mirror_health/mirror-health
b/modules/roles/files/mirror_health/mirror-health
index
f70cf71
..
c2ef590
100755
(executable)
--- 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