airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1839) S3Hook.list_keys throws exception
Date Wed, 22 Nov 2017 14:04:00 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16262555#comment-16262555
] 

ASF subversion and git services commented on AIRFLOW-1839:
----------------------------------------------------------

Commit 17e01248a1a5ba92675c865a6e5ccfb36603b3a5 in incubator-airflow's branch refs/heads/v1-9-test
from [~ashb]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=17e0124 ]

[AIRFLOW-1839] Fix more bugs in S3Hook boto -> boto3 migration

There were some more bugs as a result of the boto
to boto3 migration
that weren't covered by existing tests. Now they
are fixed, and covered.
Hopefully I got everything this time.

Closes #2805 from ashb/AIRFLOW-1839-s3
-hook_loadsa-tests

(cherry picked from commit 2d5408935fc41c3d3b6618d8c563d1eecac06561)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>


> S3Hook.list_keys throws exception
> ---------------------------------
>
>                 Key: AIRFLOW-1839
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1839
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Ash Berlin-Taylor
>
> {noformat}
>       File "/usr/local/lib/python3.5/site-packages/airflow/hooks/S3_hook.py", line 104,
in list_keys
>         return [k.Key for k in response['Contents']] if response.get('Contents') else
None
>       File "/usr/local/lib/python3.5/site-packages/airflow/hooks/S3_hook.py", line 104,
in <listcomp>
>         return [k.Key for k in response['Contents']] if response.get('Contents') else
None
>     AttributeError: 'dict' object has no attribute 'Key'
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message