Skip to content

Commit 519c2ab

Browse files
committed
rename timeout keys to avoid confusion w.r.t. command line options
1 parent 77181bf commit 519c2ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/src/main/python/opengrok_tools/utils/commandsequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def run(self):
159159
by project name, otherwise project name will be appended to the
160160
argument list of the command.
161161
162-
Any command entry that is a URI, will be used to submit RESTful API
162+
Any command entry that is a URI, will be used to submit REST API
163163
request.
164164
"""
165165

tools/src/main/python/opengrok_tools/utils/restful.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,12 @@ def call_rest_api(call, substitutions=None, http_headers=None, timeout=None, api
208208
uri = subst(uri, substitutions)
209209
logger.debug(f"URI after the substitutions: {uri}")
210210

211-
call_timeout = call.get("timeout")
211+
call_timeout = call.get("api_timeout")
212212
if call_timeout:
213213
logger.debug(f"Setting connect/read API timeout based on the call to {call_timeout}")
214214
timeout = call_timeout
215215

216-
call_api_timeout = call.get("api_timeout")
216+
call_api_timeout = call.get("async_api_timeout")
217217
if call_api_timeout:
218218
logger.debug(f"Setting async API timeout based on the call to {call_api_timeout}")
219219
api_timeout = call_api_timeout

0 commit comments

Comments
 (0)