Skip to content

Commit 87d4d9b

Browse files
committed
fix the printing of long_term_name and device in prompts and errors messages
1 parent 2128128 commit 87d4d9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awth/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def validate(config,
267267
access_key = config.get(long_term_name, 'aws_secret_access_key')
268268
except NoSectionError:
269269
log_error_and_exit(logger,
270-
f"Long term credentials session '[{long_term_name}]' is missing. "
270+
f"Long term credentials session '{long_term_name}' is missing. "
271271
"You must add this section to your credentials file "
272272
"along with your long term 'aws_access_key_id' and "
273273
"'aws_secret_access_key'")
@@ -415,7 +415,7 @@ def get_credentials(logger,
415415
mfa_token = str(token)
416416
else:
417417
mfa_token = Prompt.ask(
418-
f'Enter AWS MFA code for device [{device}] (renewing for {duration} seconds):'
418+
f'Enter AWS MFA code for device {device} (renewing for {duration} seconds):'
419419
)
420420

421421
client = boto3.client(

0 commit comments

Comments
 (0)