Return-Path: X-Original-To: apmail-libcloud-commits-archive@www.apache.org Delivered-To: apmail-libcloud-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE85A10102 for ; Fri, 10 Jan 2014 15:14:28 +0000 (UTC) Received: (qmail 6166 invoked by uid 500); 10 Jan 2014 15:13:04 -0000 Delivered-To: apmail-libcloud-commits-archive@libcloud.apache.org Received: (qmail 5810 invoked by uid 500); 10 Jan 2014 15:12:53 -0000 Mailing-List: contact commits-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list commits@libcloud.apache.org Received: (qmail 5676 invoked by uid 99); 10 Jan 2014 15:12:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jan 2014 15:12:51 +0000 Date: Fri, 10 Jan 2014 15:12:51 +0000 (UTC) From: "Oleg Suharev (JIRA)" To: commits@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (LIBCLOUD-491) ParamikoSSHClient don't show stdout/stderr when run fast commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LIBCLOUD-491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Suharev closed LIBCLOUD-491. --------------------------------- Resolution: Fixed [~kami], [~jc2k] thx guys! Now it work fine > ParamikoSSHClient don't show stdout/stderr when run fast commands > ----------------------------------------------------------------- > > Key: LIBCLOUD-491 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-491 > Project: Libcloud > Issue Type: Bug > Reporter: Oleg Suharev > Priority: Critical > > Hello > Commit a053cde create a big trouble in ParamikoSSHClien.run method. When I run 'fast' commands (for example uname -a) this method doesn't return stdout/stderr, because code > {code} > while not chan.exit_status_ready(): > if chan.recv_ready(): > {code} > doesn't run since chan.exit_status_ready() already return True (in first call) > [~kami] please fix this trouble. > {code} > In [1]: from libcloud.compute.ssh import SSHClient > In [2]: client = SSHClient('123.123.321.321', key='/Users/user/mykey.pem') > In [3]: client.connect() > Out[3]: True > In [4]: client.run('uname -a') > Out[4]: ['', '', 0] > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)