File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,11 +215,11 @@ def employee_client(username=None,
215
215
# Assume access_token is valid for now, user has logged in before at least.
216
216
if access_token and user_id :
217
217
auth = slauth .EmployeeAuthentication (user_id , access_token )
218
- return EmployeeClient (auth = auth , transport = transport )
218
+ return EmployeeClient (auth = auth , transport = transport , config_file = config_file )
219
219
else :
220
220
# This is for logging in mostly.
221
221
LOGGER .info ("No access_token or userid found in settings, creating a No Auth client for now." )
222
- return EmployeeClient (auth = None , transport = transport )
222
+ return EmployeeClient (auth = None , transport = transport , config_file = config_file )
223
223
224
224
225
225
def Client (** kwargs ):
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ def get_client_settings_config_file(**kwargs): # pylint: disable=inconsistent-r
80
80
r_config ["verify" ] = True
81
81
elif r_config ["verify" ].lower () == "false" :
82
82
r_config ["verify" ] = False
83
- else :
83
+ elif r_config [ "verify" ] :
84
84
os .environ ['SSL_CERT_FILE' ] = r_config ["verify" ]
85
85
return r_config
86
86
You can’t perform that action at this time.
0 commit comments