airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayesh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-708) SSHExecuteOperator dont respect multiline output from the command
Date Tue, 20 Dec 2016 21:05:58 GMT
Jayesh created AIRFLOW-708:
------------------------------

             Summary: 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: Jayesh


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
(v6.3.4#6332)

Mime
View raw message