You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Bolke de Bruin (JIRA)" <ji...@apache.org> on 2017/11/22 14:05:00 UTC

[jira] [Resolved] (AIRFLOW-1839) S3Hook.list_keys throws exception

     [ https://issues.apache.org/jira/browse/AIRFLOW-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bolke de Bruin resolved AIRFLOW-1839.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

Issue resolved by pull request #2805
[https://github.com/apache/incubator-airflow/pull/2805]

> 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
>             Fix For: 1.9.0
>
>
> {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)