From e2e0d9005a132769cff685844de0c063902037ba Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 12 Dec 2017 22:25:14 +0100 Subject: [PATCH] Handle ConnectTimeout the same as ReadTimeout for mirror-health --- modules/roles/files/mirror_health/mirror-health | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/roles/files/mirror_health/mirror-health b/modules/roles/files/mirror_health/mirror-health index a4df165a3..57703668e 100755 --- a/modules/roles/files/mirror_health/mirror-health +++ b/modules/roles/files/mirror_health/mirror-health @@ -43,11 +43,11 @@ def check_uptodate(): lm = last_modified(retrieve_from_host(host, URL)) logging.debug("lm for host %s: %s", host, lm) latest_ts = max(latest_ts, lm) - except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout): + except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout, requests.exceptions.ConnectTimeout): pass try: local_lm = last_modified(retrieve_from_host('localhost', URL)) - except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout): + except (requests.exceptions.ProxyError, requests.exceptions.ReadTimeout, requests.exceptions.ConnectTimeout): return False logging.debug("lm for localhost: %s", local_lm) if local_lm < latest_ts: -- 2.20.1