mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 01:46:59 +08:00
add timeout on http reads for profile lookups
This commit is contained in:
@@ -41,7 +41,7 @@ def get_immutable_handler( key, **kw ):
|
||||
|
||||
def get_mutable_handler( url, **kw ):
|
||||
try:
|
||||
req = requests.get(url)
|
||||
req = requests.get(url, timeout=5)
|
||||
if req.status_code != 200:
|
||||
log.debug("GET %s status code %s" % (url, req.status_code))
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user