You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2019/01/14 12:17:00 UTC
[jira] [Commented] (AIRFLOW-1469) ECSOperator with optional
aws_conn_id results in a NullPointer
[ https://issues.apache.org/jira/browse/AIRFLOW-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16741994#comment-16741994 ]
jack commented on AIRFLOW-1469:
-------------------------------
This is indeed a bug.
If you don't set the aws_conn_id it will default to None:
[https://github.com/apache/airflow/blob/master/airflow/contrib/operators/ecs_operator.py#L67]
This will cause the hook to return Null pointer because of:
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/aws_hook.py#L96
What I don't understand here and is strange to me is how this could happen as +we have a test+ for this:
[https://github.com/apache/airflow/blob/master/tests/contrib/operators/test_ecs_operator.py#L90]
> ECSOperator with optional aws_conn_id results in a NullPointer
> --------------------------------------------------------------
>
> Key: AIRFLOW-1469
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1469
> Project: Apache Airflow
> Issue Type: Bug
> Components: aws
> Reporter: Niels Zeilemaker
> Assignee: Niels Zeilemaker
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)