dstandish commented on code in PR #39604: URL: https://github.com/apache/airflow/pull/39604#discussion_r1603996032
########## airflow/cli/commands/task_command.py: ########## @@ -177,7 +176,7 @@ def _get_ti_db_access( if not exec_date_or_run_id and not create_if_necessary: raise ValueError("Must provide `exec_date_or_run_id` if not `create_if_necessary`.") - if needs_expansion(task): + if task.get_needs_expansion(): if map_index < 0: raise RuntimeError("No map_index passed to mapped task") Review Comment: ah yeah true i thought the elif was inside in any case yeah i'd leave it alone because although it's true, they are functionally equivalent, it would unnecessarily distort the git history without much real benefit IMHO. -- 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. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org