baolsen commented on a change in pull request #11020:
URL: https://github.com/apache/airflow/pull/11020#discussion_r491169884



##########
File path: airflow/providers/amazon/aws/operators/datasync.py
##########
@@ -335,9 +335,10 @@ def _execute_datasync_task(self):
         # Log some meaningful statuses
         level = logging.ERROR if not result else logging.INFO
         self.log.log(level, 'Status=%s', task_execution_description['Status'])
-        for k, v in task_execution_description['Result'].items():
-            if 'Status' in k or 'Error' in k:
-                self.log.log(level, '%s=%s', k, v)
+        if 'Result' in task_execution_description:

Review comment:
       That is a great point, thank you.
   I tested with moto 1.3.16 on Windows just using pytest directly, and forgot 
to unpin :)
   Unpinned now, let's see what the build does.




----------------------------------------------------------------
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