uranusjr commented on a change in pull request #16012:
URL: https://github.com/apache/airflow/pull/16012#discussion_r655156985



##########
File path: airflow/providers/amazon/aws/operators/glue.py
##########
@@ -101,16 +101,15 @@ def execute(self, context):
         if self.script_location and not 
self.script_location.startswith(self.s3_protocol):
             s3_hook = S3Hook(aws_conn_id=self.aws_conn_id)
             script_name = os.path.basename(self.script_location)
-            s3_hook.load_file(
-                filename=self.script_location,
-                key=self.s3_artifacts_prefix + script_name,
-                bucket_name=self.s3_bucket,
-            )
+            s3_hook.load_file(self.script_location, self.s3_artifacts_prefix + 
script_name, bucket_name=self.s3_bucket)
+            s3_script_location = 
f"s3://{self.s3_bucket}/{self.s3_artifacts_prefix + script_name}"

Review comment:
       ```suggestion
               s3_script_location = 
f"s3://{self.s3_bucket}/{self.s3_artifacts_prefix}{script_name}"
   ```
   
   ?




-- 
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:
[email protected]


Reply via email to