Skip to content

Allow for proper debugging of config setup #2196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions SoftLayer/CLI/config/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def cli(env, auth):
username = 'apikey'
secret = env.getpass('Classic Infrastructure API Key', default=defaults['api_key'])
new_client = SoftLayer.Client(username=username, api_key=secret, endpoint_url=endpoint_url, timeout=timeout)
env.client = new_client
env.client.transport = SoftLayer.DebugTransport(new_client.transport)
api_key = get_api_key(new_client, username, secret)

elif auth == 'sso':
Expand All @@ -87,6 +89,8 @@ def cli(env, auth):
username = env.input('Classic Infrastructure Username', default=defaults['username'])
secret = env.getpass('Classic Infrastructure API Key', default=defaults['api_key'])
new_client = SoftLayer.Client(username=username, api_key=secret, endpoint_url=endpoint_url, timeout=timeout)
env.client = new_client
env.client.transport = SoftLayer.DebugTransport(new_client.transport)
api_key = get_api_key(new_client, username, secret)

# Ask for timeout, convert to float, then to int
Expand Down
Loading