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

okta-awscli duplicates the config file when appending to it #199

Closed
tdmalone opened this issue Jul 12, 2022 · 1 comment
Closed

okta-awscli duplicates the config file when appending to it #199

tdmalone opened this issue Jul 12, 2022 · 1 comment

Comments

@tdmalone
Copy link

Describe the bug
When ~/.okta-aws already exists and okta-awscli --config is run, it results in the entire existing contents of the config file being appended. It likely needs to either append only the new profile, OR instead of appending, replace the old contents with the new contents, rather than attempting to do both.

To Reproduce
Steps to reproduce the behavior:

  1. With an existing profile already in place, run okta-awscli --config
  2. Enter y when prompted, to proceed to append the new profile
  3. Answer the questions as necessary
  4. The command succeeds, but when trying to use okta-awscli, an error will be received due to duplicate profiles

Expected behavior
The new profile to append, rather than the existing contents of the file also being appended.

Output

Environment (please complete the following information):

  • OS: macOS
  • Version of okta-awscli: 0.5.4

Additional context

@jwflynn
Copy link

jwflynn commented Aug 19, 2022

I see the same behavior in windows

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

No branches or pull requests

2 participants