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

Raise exception if partial credentials are found #331

Merged
merged 1 commit into from
Aug 11, 2014

Conversation

jamesls
Copy link
Member

@jamesls jamesls commented Aug 11, 2014

This was previously raising an unhelpful KeyError.
Now, whenever a cred provider has at least the access key,
it is an error if the corresponding secret key is not also
available via the same provider. You also get a better
error message now as well::

Partial credentials found in config-file, missing: aws_secret_access_key

Fixes aws/aws-cli#690

cc @kyleknap @danielgtaylor

This was previously raising an unhelpful ``KeyError``.
Now, whenever a cred provider has at least the access key,
it is an error if the corresponding secret key is not also
available via the same provider.  You also get a better
error message now as well::

    Partial credentials found in config-file, missing: aws_secret_access_key
@danielgtaylor
Copy link
Member

👍 LGTM 🚢-it!

@kyleknap
Copy link
Contributor

LGTM

@jamesls jamesls merged commit 8856a33 into boto:develop Aug 11, 2014
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.

Throw an error if an incomplete profile is encountered
3 participants