Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overwrite empty credentials #212

Open
ddriddle opened this issue Sep 27, 2024 · 0 comments · May be fixed by #216
Open

Overwrite empty credentials #212

ddriddle opened this issue Sep 27, 2024 · 0 comments · May be fixed by #216

Comments

@ddriddle
Copy link
Collaborator

ddriddle commented Sep 27, 2024

Old versions of awscli-login on log out leave empty configuration entries like so:

[default]
aws_access_key_id = 
aws_secret_access_key = 
aws_session_token = 
aws_security_token = 

Such entries when they are configured cause the new code to raise an unnecessary warning:

aws login configure
WARNING: Profile 'default' contains credentials.
Overwrite profile 'default' to enable login?

Suppress the warning when the entires are all empty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant