-
Notifications
You must be signed in to change notification settings - Fork 132
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
Plumb request payer to complete multipart #103
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me. I'm noticing there's a lot of similarity between the multipart uploads and copies. It might be worth trying to refactor this code the next time we need to touch these files.
s3transfer/utils.py
Outdated
@@ -126,6 +126,24 @@ def invoke_progress_callbacks(callbacks, bytes_transferred): | |||
callback(bytes_transferred=bytes_transferred) | |||
|
|||
|
|||
def get_filtered_extra_args(extra_args, whitelisted_args): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rename this to something more general? The name makes sense when it's an internal method on the various Task subclasses, but if it's going to be a utility function I think it should be named without any mention of "extra args".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was thinking about that too. I am going to rename it to get_filtered_dict
.
@jamesls I updated based on feedback. Let me know if you have any feedback on the update. Otherwise, I will probably merge this soon so we can start getting clean runs of the CLI |
I noticed that this was not plumbed in when I was working on the
--request-payer
feature for the CLI.