Skip to content

Commit

Permalink
fix printing style
Browse files Browse the repository at this point in the history
  • Loading branch information
adnan-alhomssi committed Jul 15, 2024
1 parent 113a3cf commit 0e0bb7a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/aws.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ end


function Base.show(io::IO, creds::AWSCredentials)
print(io, "AWSCredentials(\
profile=$(creds.profile), access_key_id=****, \
secret_access_key=****, session_token=****, \
expiration=$(creds.expiration), expireThreshold=$(creds.expireThreshold))"
)
print(io, "AWSCredentials(")
print(io, "profile=", creds.profile, ",")
print(io, "access_key_id=", "****", ",")
print(io, "secret_access_key=", "****", ",")
print(io, "session_token=", "****", ",")
print(io, "expiration=", creds.expiration, ",")
print(io, "expireThreshold=", creds.expireThreshold, ")")
end

AWSCredentials(profile::String, access_key_id::String, secret_access_key::String, session_token::String, expiration, expireThreshold) =
Expand Down

0 comments on commit 0e0bb7a

Please sign in to comment.