mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
add timeout parameter and increase default timeout for nso modules (#37391)
NSO operations can take much longer than 10 seconds as they operate on real network equipment, set default timeout to 5 minutes and allow for user override.
This commit is contained in:
parent
e166946a0a
commit
458a07d5a4
4 changed files with 22 additions and 15 deletions
|
@ -60,7 +60,7 @@ class MockResponse(object):
|
|||
return self.body
|
||||
|
||||
|
||||
def mock_call(calls, url, data=None, headers=None, method=None):
|
||||
def mock_call(calls, url, timeout, data=None, headers=None, method=None):
|
||||
result = calls[0]
|
||||
del calls[0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue