Skip to content

Commit

Permalink
Check for dynamically set dag_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
BasPH committed May 13, 2019
1 parent bd00dfc commit 95b976b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pylint_airflow/checkers/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def _find_dag(
return str(keyword.value.value), call_node

if call_node.args:
# TODO support dag_ids set in other ways than constant.
if not hasattr(call_node.args[0], "value"):
# TODO Support dynamic dag_id. If dag_id is set from variable, it has no value attr. # pylint: disable=line-too-long
return None, None
return call_node.args[0].value, call_node

return None, None
Expand Down

0 comments on commit 95b976b

Please sign in to comment.