Skip to content

Commit

Permalink
Addressed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ezilber-akamai committed Oct 21, 2024
1 parent 6854c98 commit 5818fd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linodecli/api_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _print_request_debug_info(method, url, headers, body):
for k, v in headers.items():
# If this is the Authorization header, sanitize the token
if k.lower() == "authorization":
v = "Bearer *******************************"
v = "Bearer " + "*" * 64
print(f"> {k}: {v}", file=sys.stderr)
print("> Body:", file=sys.stderr)
print("> ", body or "", file=sys.stderr)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_api_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_request_debug_info(self):
assert "> GET https://definitely.linode.com/" in output
assert "> cool: test" in output
assert (
"> Authorization: Bearer *******************************" in output
f"> Authorization: Bearer {'*' * 64}" in output
)
assert "> Body:" in output
assert "> cool body" in output
Expand Down

0 comments on commit 5818fd6

Please sign in to comment.