File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
tools/src/main/python/opengrok_tools/utils Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,13 @@ def check_call_config(call):
74
74
75
75
call_timeout = call .get (API_TIMEOUT_PROPERTY )
76
76
if call_timeout :
77
- try :
78
- int (call_timeout )
79
- except ValueError as exc :
80
- raise CommandConfigurationException (f"{ API_TIMEOUT_PROPERTY } not an integer" , exc )
77
+ if call_timeout .startswith ("$" ):
78
+ pass
79
+ else :
80
+ try :
81
+ int (call_timeout )
82
+ except ValueError as exc :
83
+ raise CommandConfigurationException (f"{ API_TIMEOUT_PROPERTY } not an integer" , exc )
81
84
82
85
call_api_timeout = call .get (ASYNC_API_TIMEOUT_PROPERTY )
83
86
if call_api_timeout :
@@ -138,7 +141,7 @@ def __init__(self, call_dict):
138
141
if call_timeout .startswith ("$" ):
139
142
call_timeout = os .environ .get (call_timeout [1 :], "" )
140
143
if call_timeout .isdigit ():
141
- self .api_timeout = call_timeout
144
+ self .api_timeout = int ( call_timeout )
142
145
143
146
self .async_api_timeout = None
144
147
call_api_timeout = call_dict .get (ASYNC_API_TIMEOUT_PROPERTY )
You can’t perform that action at this time.
0 commit comments