Skip to content

Commit 97d34f7

Browse files
Fixed a few config remembering issues
1 parent 1e8725d commit 97d34f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SoftLayer/API.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ def employee_client(username=None,
215215
# Assume access_token is valid for now, user has logged in before at least.
216216
if access_token and user_id:
217217
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)
219219
else:
220220
# This is for logging in mostly.
221221
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)
223223

224224

225225
def Client(**kwargs):

SoftLayer/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_client_settings_config_file(**kwargs): # pylint: disable=inconsistent-r
8080
r_config["verify"] = True
8181
elif r_config["verify"].lower() == "false":
8282
r_config["verify"] = False
83-
else:
83+
elif r_config["verify"]:
8484
os.environ['SSL_CERT_FILE'] = r_config["verify"]
8585
return r_config
8686

0 commit comments

Comments
 (0)