Skip to content

Commit

Permalink
Merge pull request #2196 from allmightyspiff/setupDebug
Browse files Browse the repository at this point in the history
Allow for proper debugging of config setup
  • Loading branch information
allmightyspiff authored Oct 21, 2024
2 parents fe208b1 + fbdf40e commit 8a57db7
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 8a57db7

Please sign in to comment.