Note: This ticket's being created to facilitate a new contributor's workshop for Airflow. After the workshop has completed, I'll mark these all available for anyone that might like to take them on.
The `line` variable is assigned to `''` but then immediately reassigned in the loop. This first assignment should be deleted.
airflow/contrib/sensors/bash_sensor.py:83
line = '' for line in iter(sp.stdout.readline, b''): line = line.decode(self.output_encoding).strip() self.log.info(line) sp.wait() self.log.info("Command exited with return code %s", sp.returncode)
- links to