Skip to content

Commit

Permalink
Fixed a few config remembering issues
Browse files Browse the repository at this point in the history
  • Loading branch information
allmightyspiff committed May 9, 2024
1 parent 1e8725d commit 97d34f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SoftLayer/API.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ def employee_client(username=None,
# Assume access_token is valid for now, user has logged in before at least.
if access_token and user_id:
auth = slauth.EmployeeAuthentication(user_id, access_token)
return EmployeeClient(auth=auth, transport=transport)
return EmployeeClient(auth=auth, transport=transport, config_file=config_file)
else:
# This is for logging in mostly.
LOGGER.info("No access_token or userid found in settings, creating a No Auth client for now.")
return EmployeeClient(auth=None, transport=transport)
return EmployeeClient(auth=None, transport=transport, config_file=config_file)


def Client(**kwargs):
Expand Down
2 changes: 1 addition & 1 deletion SoftLayer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_client_settings_config_file(**kwargs): # pylint: disable=inconsistent-r
r_config["verify"] = True
elif r_config["verify"].lower() == "false":
r_config["verify"] = False
else:
elif r_config["verify"]:
os.environ['SSL_CERT_FILE'] = r_config["verify"]
return r_config

Expand Down

0 comments on commit 97d34f7

Please sign in to comment.