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

Fix 'awscli logout' command #326

Merged
merged 2 commits into from
Oct 18, 2019
Merged

Fix 'awscli logout' command #326

merged 2 commits into from
Oct 18, 2019

Conversation

zer0beat
Copy link
Contributor

@zer0beat zer0beat commented Jul 30, 2019

Problem Statement

You cannot logout from your AWS account using 'awscli logout' command.

Solution

Fix the argument management on 'withokta' script

@@ -136,7 +136,7 @@ command="$1"
profile=$2
shift;
shift;
if [ "$3" == "logout" ]
if [ "$1" == "logout" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain how you are calling withokta. I don't understand why we even need to check why $1 or $3 (though I do agree $3 in this case is incorrect and will reference an empty string).

If you just call:
withokta logout profile command will already be logout

Copy link
Contributor Author

@zer0beat zer0beat Aug 23, 2019

Choose a reason for hiding this comment

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

I'm using the awscli command. When I execute awscli logout 'awscli' wrapper script run withokta aws default logout and in this moment the withokta script doesn't work as expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the PR name and description. Now, they are more accurate.

@zer0beat zer0beat changed the title Fix logout command Fix 'awscli logout' command Aug 23, 2019
@jeremyplichtafc jeremyplichtafc merged commit 90f38dd into oktadev:master Oct 18, 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.

2 participants