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

🐛 Only remove --profile arg when in OKTA_ENV_MODE #325

Merged
merged 1 commit into from
Jul 27, 2019
Merged

🐛 Only remove --profile arg when in OKTA_ENV_MODE #325

merged 1 commit into from
Jul 27, 2019

Conversation

douglaswth
Copy link
Contributor

Problem Statement

Solution

  • I have moved the call to removeProfileArguments back to only the OKTA_ENV_MODE execution path.
  • I have also added support for removing --profile=* arguments as well since that is also a valid use of the aws CLI.

- With #303, the call to `removeProfileArguments` moved out of only
  OKTA_ENV_MODE. I don't think this is correct since it was specifically
  added in #185 which added OKTA_ENV_MODE.
- I have also added support for removing `--profile=*` arguments as well
  since that is also a valid use of the `aws` CLI.
@douglaswth
Copy link
Contributor Author

@jeremyplichtafc it looks like you recently made a new release of this project. Would you mind taking a look at this PR and also #324?

Copy link
Collaborator

@jeremyplichtafc jeremyplichtafc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looked at your changes and think they make sense. Tested on your branch with OKTA_ENV_MODE set and java -cp target/okta-aws-cli-2.0.4-SNAPSHOT.jar -Dsun.net.http.allowRestrictedHeaders=true com.okta.tools.WithOkta --profile production env and it works.

@jeremyplichtafc jeremyplichtafc merged commit f7dce49 into oktadev:master Jul 27, 2019
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 this pull request may close these issues.

None yet

2 participants