Skip to content

Commit

Permalink
Merge pull request #5 from navalkp/master
Browse files Browse the repository at this point in the history
Increased timeout for put_method to 60 second
  • Loading branch information
navalkp authored Nov 19, 2018
2 parents 83e6a5e + f82319c commit 354bda3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pylxca/pylxca_api/lxca_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,8 @@ def get_method(self, url, session, **kwargs):
def put_method(self, url, session, payload, **kwargs):
resp = None
try:
resp = session.put(url, data = json.dumps(payload), verify=False, timeout=3) ## It raises HTTPError here
resp = session.put(url, data = json.dumps(payload), verify=False,
timeout=60) ## It raises HTTPError here
resp.raise_for_status()
except HTTPError as re:
logger.error("REST API Exception: Exception = %s", re)
Expand Down

0 comments on commit 354bda3

Please sign in to comment.