You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/15 15:36:31 UTC

[GitHub] [airflow] jcarless commented on a change in pull request #8304: [Airflow-5565] Add extra_args param to s3hook

jcarless commented on a change in pull request #8304: [Airflow-5565] Add extra_args param to s3hook
URL: https://github.com/apache/airflow/pull/8304#discussion_r408939069
 
 

 ##########
 File path: airflow/providers/amazon/aws/hooks/s3.py
 ##########
 @@ -576,19 +578,21 @@ def load_file_obj(self,
             object to be uploaded
         :type acl_policy: str
         """
-        self._upload_file_obj(file_obj, key, bucket_name, replace, encrypt, acl_policy)
+        self._upload_file_obj(file_obj, key, bucket_name, replace, encrypt, acl_policy, extra_args)
 
     def _upload_file_obj(self,
                          file_obj,
                          key,
                          bucket_name=None,
                          replace=False,
                          encrypt=False,
-                         acl_policy=None):
+                         acl_policy=None,
+                         extra_args=None):
         if not replace and self.check_for_key(key, bucket_name):
             raise ValueError("The key {key} already exists.".format(key=key))
 
-        extra_args = {}
+        if not extra_args:
 
 Review comment:
   Hi, thanks for the feedback! Are you talking about something like this?
   ```        
   if not extra_args:
               extra_args = copy.deepcopy(extra_args)
               extra_args = {}
   ```
   
   Im not sure I understand which external args you are referring to.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services