You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/29 15:46:18 UTC
[GitHub] [airflow] dimberman opened a new issue #7973: SSHExecuteOperator
dont respect multiline output from the command
dimberman opened a new issue #7973: SSHExecuteOperator dont respect multiline output from the command
URL: https://github.com/apache/airflow/issues/7973
**Apache Airflow version**: None
Ticket was created 20/Dec/16 21:05
**Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
**Environment**:
- **Cloud provider or hardware configuration**:
- **OS** (e.g. from /etc/os-release):
- **Kernel** (e.g. `uname -a`):
- **Install tools**:
- **Others**:
**What happened**:
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 )
line = ''
for line in iter(sp.stdout.readline, b''):
line = line.decode().strip()
logging.info(line)
**What you expected to happen**:
**How to reproduce it**:
**Anything else we need to know**:
Moved here from https://issues.apache.org/jira/browse/AIRFLOW-708
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] dimberman closed issue #7973: SSHExecuteOperator dont
respect multiline output from the command
Posted by GitBox <gi...@apache.org>.
dimberman closed issue #7973: SSHExecuteOperator dont respect multiline output from the command
URL: https://github.com/apache/airflow/issues/7973
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services