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

Safely handle missing credentials.d folder #27

Merged
merged 1 commit into from
Aug 28, 2023

Commits on Aug 17, 2023

  1. Safely handle missing credentials.d folder

    The `$HOME/.aws/credentials.d` folder is not required to exist, as all
    credential configurations can be defined on `$HOME/.aws/credentials` instead.
    
    The early return with the `?` operator caused the binary to fail if the
    optional folder did not exist, but worked if the folder existed but was empty.
    
    This commit refactors the code the avoid crashing when the
    `$HOME/.aws/credentials.d` does not exist.
    
    It is collecting into a Vector instead of chaining the streams as it would
    required Boxed Streams to switch between `ReadDirStream` and `stream::empty` in
    case of an `Err`.
    bltavares committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    dc63b00 View commit details
    Browse the repository at this point in the history