get_ssh_client() doesn't actually do anything, so just reference the
attribute directly
Change-Id: I6a88b09953a7ca5a0e2675ac1c2c5a99b8cf724a
Signed-off-by: Steven Hardy <shardy@redhat.com>
# IP into the /usr/share one, which seems to work but could be a
# template bug..
stdin, stdout, sterr =\
- self.WebServer.get_ssh_client().exec_command('grep DB_HOST '
- + wp_file)
+ self.WebServer.ssh.exec_command('grep DB_HOST ' + wp_file)
result = stdout.readlines().pop().rstrip().split('\'')
print "Checking wordpress DB_HOST, got %s" % result[3]
self.assertTrue("localhost" != result[3])
with open(filepaths[file]) as f:
self.testcase.assertEqual(data, f.read())
- def get_ssh_client(self):
- if self.ssh.get_transport() is not None:
- return self.ssh
- return None
-
def get_sftp_client(self):
if self.sftp is not None:
return self.sftp