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 15:47:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17070409#comment-17070409 ]
Daniel Imberman commented on AIRFLOW-708:
-----------------------------------------
This issue has been moved to https://github.com/apache/airflow/issues/7973
> 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)