]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
heat tests : remove unused get_sftp_client()
authorSteven Hardy <shardy@redhat.com>
Fri, 4 Jan 2013 15:23:30 +0000 (15:23 +0000)
committerSteven Hardy <shardy@redhat.com>
Fri, 4 Jan 2013 17:55:29 +0000 (17:55 +0000)
get_sftp_client is not needed so remove it

Change-Id: I9fb0670730e808c1f2786866ad3451f8e9f38789
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/tests/functional/util.py

index c8f935bc7a88e24f0c5d5f34fb06c245ebfe0cd0..f986f1ef739931ec3070772c5964c85d3c5a27b2 100644 (file)
@@ -76,6 +76,7 @@ class Instance(object):
                                              service_type='compute')
 
         self.ssh = paramiko.SSHClient()
+        self.sftp = None
 
         self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
 
@@ -296,11 +297,6 @@ class Instance(object):
                 with open(filepaths[file]) as f:
                     self.testcase.assertEqual(data, f.read())
 
-    def get_sftp_client(self):
-        if self.sftp is not None:
-            return self.sftp
-        return None
-
     def close_ssh_client(self):
         self.ssh.close()