You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fokko Driesprong (JIRA)" <ji...@apache.org> on 2018/04/23 09:14:01 UTC

[jira] [Closed] (AIRFLOW-2344) Fix `airflow connections -l` to work with pipe and redirect

     [ https://issues.apache.org/jira/browse/AIRFLOW-2344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fokko Driesprong closed AIRFLOW-2344.
-------------------------------------
    Resolution: Fixed

> 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
>            Assignee: Kengo Seki
>            Priority: Minor
>
> {{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)