config: Support ~/.aws/config parsing#5378
Merged
Merged
Conversation
shcheklein
reviewed
Feb 1, 2021
efiop
reviewed
Feb 4, 2021
efiop
reviewed
Feb 4, 2021
| @@ -0,0 +1,24 @@ | |||
| # https://github.com/aws/aws-cli/blob/5aa599949f60b6af554fd5714d7161aa272716f7/awscli/customizations/s3/utils.py | |||
Contributor
There was a problem hiding this comment.
Since this whole file is awscli-specific, we could move this stuff to dvc/tree/s3.py or create something like dvc/tree/s3/utils.py and it put it there. This piece is quite small, so could go with the former, no problem.
Contributor
Author
There was a problem hiding this comment.
I think keeping here is OK (even though this is a pre-emptive assumption) I believe this utility might come in handy in other places since it does a very general job. The awscli-specific part here is the handling of IEC suffixes, though it doesn't differ much and something we can ignore.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. (config: add docs for s3.configpath dvc.org#2140)
Thank you for the contribution - we'll try to review it as soon as possible. 🙏
resolves #4359