brokenjacobs commented on a change in pull request #8287: [AIRFLOW-4363] Fix
JSON encoding error
URL: https://github.com/apache/airflow/pull/8287#discussion_r407792698
##########
File path: airflow/providers/docker/operators/docker.py
##########
@@ -281,7 +281,7 @@ def execute(self, context):
if self.force_pull or not self.cli.images(name=self.image):
self.log.info('Pulling docker image %s', self.image)
for line in self.cli.pull(self.image, stream=True, decode=True):
- output = json.loads(line.decode('utf-8').strip())
+ output = json.loads(line)
Review comment:
Remove this entire line
----------------------------------------------------------------
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]
With regards,
Apache Git Services