Skip to content

Commit

Permalink
Merge pull request #482 from debmc/logout
Browse files Browse the repository at this point in the history
OpTestUtil: bmc web logout timeout
  • Loading branch information
oohal authored Nov 5, 2019
2 parents 39435f1 + f51bfe0 commit df8dbf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,8 @@ def logout(self, uri=None):
payload = {"data": []}
try:
# make direct call to requests post, by-pass loop_it
r = self.session.post(self._url(uri), json=payload)
# we only try for a short time (seconds) in case things are hung up
r = self.session.post(self._url(uri), json=payload, timeout=30)
if r.status_code != requests.codes.ok:
log.debug("Requests post problem with logging "
"out, r.status_code={} r.text={} r.headers={} "
Expand Down

0 comments on commit df8dbf8

Please sign in to comment.