aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevan Radakovic <stevan.radakovic@linaro.org>2012-07-03 17:24:06 +0200
committerStevan Radakovic <stevan.radakovic@linaro.org>2012-07-03 17:24:06 +0200
commit61d957912b7d827fb5da41fb8ebf2609d7b841bb (patch)
tree2ecf404aa39a51d8afd942fd961e0541123a7962
parentdc7955b1f9a2e4a23848aa405f87a7f70b03014e (diff)
Removing commented lines and adding better description.
-rw-r--r--linaro-ami/remote_executor.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/linaro-ami/remote_executor.py b/linaro-ami/remote_executor.py
index 32e8ceb..924761c 100644
--- a/linaro-ami/remote_executor.py
+++ b/linaro-ami/remote_executor.py
@@ -25,10 +25,8 @@ class RemoteExecutor:
def execute(self, command):
"""Execute a command remotely, returns output from that command."""
- # Safety measure against scripts which may expect something on stdin
- # and thus hang. Let them get EPIPE "Broken pipe" instead.
- #stdin.channel.close()
- #stdin.close()
+ # Creating transport and channel objects provided by paramiko
+ # library to execute script remotely and return output.
transport = self.client.get_transport()
channel = transport.open_session()
output_stream = channel.makefile()