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

--aws-credential-file issues #437

Merged

Conversation

NimishaS
Copy link

Fixes the following:

  1. Throws an error when invalid --aws-profile is passed
  2. The description of --aws-profile option is specific to --aws-credential-file, while it is used by --aws-config-file too now. Modify the description.

Chef::Config[:knife][:aws_secret_access_key] = entries['AWSSecretKey'] || entries['aws_secret_access_key']
Chef::Config[:knife][:aws_session_token] = entries['AWSSessionToken'] || entries['aws_session_token']
else
raise "The provided --aws-profile '#{profile}' is invalid."
Copy link
Contributor

Choose a reason for hiding this comment

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

this could raise ArgumentError, otherwise 👍

@NimishaS NimishaS force-pushed the nim/aws_credential_file_issues branch from b1aa934 to f8ba3db Compare August 2, 2016 09:59
@NimishaS NimishaS merged commit 60da2ee into chef:master Aug 2, 2016
@NimishaS NimishaS deleted the nim/aws_credential_file_issues branch August 2, 2016 10:03
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.

3 participants