add timeouts to plugin backends

This commit is contained in:
Jake McDermott
2019-03-27 11:03:22 -04:00
parent b90f9ac401
commit 8b35ac89fc
3 changed files with 12 additions and 5 deletions

View File

@@ -108,7 +108,7 @@ def conjur_backend(**kwargs):
if version:
path = '?'.join([path, version])
resp = requests.get(path, **lookup_kwargs)
resp = requests.get(path, timeout=30, **lookup_kwargs)
resp.raise_for_status()
return resp.text