Print vping output instead of Paramiko object 89/57989/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 28 May 2018 07:04:12 +0000 (09:04 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 28 May 2018 07:05:38 +0000 (09:05 +0200)
Change-Id: Iddc1abdf443e482e8748434a4ba7d85709d8cd0e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 72b17bc82ac5c6a388adbfc8a564f118d0ccd247)

functest/opnfv_tests/openstack/vping/vping_ssh.py

index 933779e..dd864e0 100644 (file)
@@ -119,7 +119,7 @@ class VPingSSH(vping_base.VPingBase):
         self.logger.debug("ssh: %s", self.ssh)
         (_, stdout, _) = self.ssh.exec_command(
             'ping -c 1 ' + self.vm1.private_v4)
-        self.logger.debug("ping output: %s", stdout)
+        self.logger.debug("ping output:\n%s", stdout.read())
         return stdout.channel.recv_exit_status()
 
     def clean(self):