Skip to content

Commit a1bb343

Browse files
authored
Merge pull request #219 from hpe-container-platform-community/requests_debug_logging
fix(requests): reduce login timeout
2 parents 8df284d + fb8bda2 commit a1bb343

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hpecp/client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ def create_session(self):
489489
response = None
490490
try:
491491
self.log.debug("REQ: {} : {} {}".format("Login", "post", url))
492-
response = requests.post(url, json=auth, verify=self.verify_ssl)
492+
response = requests.post(
493+
url, json=auth, verify=self.verify_ssl, timeout=10
494+
) # 10 seconds
493495
response.raise_for_status()
494496

495497
except requests.exceptions.ConnectionError as e:

0 commit comments

Comments
 (0)