Skip to content

Commit 6ea81c6

Browse files
#2219 fixed test errors
1 parent bd44eed commit 6ea81c6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

SoftLayer/CLI/login.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import click
66

7-
from SoftLayer.API import employee_client
87
from SoftLayer.CLI.command import SLCommand as SLCommand
98
from SoftLayer.CLI import environment
109
from SoftLayer import config

SoftLayer/auth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_request(self, request):
8989
return request
9090

9191
def __repr__(self):
92-
return f"BasicAuthentication(username={self.username})"
92+
return f"BasicAuthentication(username={self.username})"
9393

9494

9595
class BasicHTTPAuthentication(AuthenticationBase):

SoftLayer/transports/transport.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def __init__(self):
4444
#: API Parameters.
4545
self.args = tuple()
4646

47+
#: URL Parameters, used for the REST Transport
48+
self.params = None
49+
4750
#: API headers, used for authentication, masks, limits, offsets, etc.
4851
self.headers = {}
4952

@@ -117,7 +120,7 @@ def special_rest_params(self):
117120
Added this method here since it was a little easier to change the data as needed this way.
118121
"""
119122
if len(self.args) == 0 or self.params:
120-
return None
123+
return
121124
if self.method == "getEncryptedSessionToken" and self.service == "SoftLayer_User_Employee":
122125
self.params = {"remoteToken": self.args[0]}
123126
self.args = []

0 commit comments

Comments
 (0)