You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/08/03 11:16:17 UTC

[4/4] libcloud git commit: Add a comment.

Add a comment.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/7a416461
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/7a416461
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/7a416461

Branch: refs/heads/trunk
Commit: 7a4164612c8112bdc1d952d5766c817cd6af3b0b
Parents: 1954c57
Author: Tomaz Muraus <to...@apache.org>
Authored: Mon Aug 3 10:58:07 2015 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Mon Aug 3 11:07:42 2015 +0200

----------------------------------------------------------------------
 libcloud/compute/ssh.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7a416461/libcloud/compute/ssh.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/ssh.py b/libcloud/compute/ssh.py
index 12b6f8e..7733f85 100644
--- a/libcloud/compute/ssh.py
+++ b/libcloud/compute/ssh.py
@@ -353,6 +353,8 @@ class ParamikoSSHClient(BaseSSHClient):
         exit_status_ready = chan.exit_status_ready()
 
         if exit_status_ready:
+            # It's possible that some data is already available when exit
+            # status is ready
             stdout.write(self._consume_stdout(chan).getvalue())
             stderr.write(self._consume_stderr(chan).getvalue())