Kunal8954 opened a new pull request, #70429: URL: https://github.com/apache/airflow/pull/70429
Related to #70296 ## Summary Moves the template-field-dependent logic in `BashOperator.__init__` (determining whether `bash_command` is an inline command or a script file) into `execute()`, since template fields are only rendered after `__init__` runs. Previously this check ran on the un-rendered Jinja expression. ## Changes - Removed `self._is_inline_cmd` computation from `__init__` - Added equivalent `is_inline_cmd` computation inside `execute()`, using the already-rendered `self.bash_command` - Removed `BashOperator` entry from `validate_operators_init_exemptions.txt` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
