Kengo Seki created AIRFLOW-2344:
-----------------------------------
Summary: Fix `airflow connections -l` to work with pipe and
redirect
Key: AIRFLOW-2344
URL: https://issues.apache.org/jira/browse/AIRFLOW-2344
Project: Apache Airflow
Issue Type: Bug
Components: cli
Affects Versions: 1.9.0
Reporter: Kengo Seki
{{airflow connections -l}} fails with pipe or redirect e.g.:
{code}
$ airflow connections -l > foo
Traceback (most recent call last):
File "/home/sekikn/.virtualenvs/a/bin/airflow", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/sekikn/dev/incubator-airflow/airflow/bin/airflow", line 32, in
<module>
args.func(args)
File "/home/sekikn/dev/incubator-airflow/airflow/utils/cli.py", line 77, in
wrapper
raise e
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-141:
ordinal not in range(128)
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)