Skip to content

Commit

Permalink
Modified timeout property to be re-used by other libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn committed Jun 26, 2017
1 parent 0348735 commit 8560672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jnpr/junos/transport/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(self, **kvargs):
'')
self._port = kvargs.get('port', '443')
self._mode = kvargs.get('mode', 'rest')
self._timeout = kvargs.get('timeout', '5')
self.timeout = kvargs.get('timeout', '5')
self._normalize = kvargs.get('normalize', False)

self._attempts = kvargs.get('attempts', 10)
Expand Down Expand Up @@ -144,7 +144,7 @@ def _rpc_query(self, cmd):
data = cmd,
auth = (self._auth_user, self._auth_password),
verify = self._ssl_verify,
timeout = float(self._timeout),
timeout = float(self.timeout),
headers={'Accept': 'application/xml', 'Content-Type': 'application/xml'})
reply.raise_for_status()
boundary = self._parse_headers(reply.headers)
Expand Down

0 comments on commit 8560672

Please sign in to comment.