We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 737f274 commit 6f38bbeCopy full SHA for 6f38bbe
src/sasctl/core.py
@@ -357,11 +357,11 @@ def is_ipaddress(hst):
357
port = address.port
358
auth = hostname._sw_connection._auth.decode("utf-8")
359
# Checks to see if authentication was made via user/pass or auth token
360
- if(auth.startswith("Basic")):
+ if auth.startswith("Basic"):
361
# User/pass
362
auth = auth.replace("Basic ", "")
363
username, password = base64.b64decode(auth).decode("utf-8").split(":")
364
- elif(auth.startswith("Bearer")):
+ elif auth.startswith("Bearer"):
365
# Auth token
366
token = auth.replace("Bearer ", "")
367
else:
0 commit comments