You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Daniel Imberman (Jira)" <ji...@apache.org> on 2020/03/29 18:55:00 UTC

[jira] [Closed] (AIRFLOW-708) SSHExecuteOperator dont respect multiline output from the command

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

Daniel Imberman closed AIRFLOW-708.
-----------------------------------
    Resolution: Auto Closed

> SSHExecuteOperator dont respect multiline output from the command 
> ------------------------------------------------------------------
>
>                 Key: AIRFLOW-708
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-708
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Jay Sen
>            Assignee: Jay Sen
>            Priority: Major
>
> I find following piece of code works when you have 1 liner output but simply cant work for multiline output from the given bash_command ( it will print proper multiline output in log though )
> {code}
>     line = ''
>     for line in iter(sp.stdout.readline, b''):
>         line = line.decode().strip()
>         logging.info(line)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)