]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use Remote.get_file() 424/head
authorZack Cerza <zack@redhat.com>
Tue, 17 Mar 2015 16:44:21 +0000 (10:44 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 17 Mar 2015 16:44:21 +0000 (10:44 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/internal.py

index ae46ae132a017197a5235b0e8fca267ebed8fe45..f18483783648bff194d7a89264ab96264374740c 100644 (file)
@@ -389,16 +389,14 @@ def fetch_binaries_for_coredumps(path, remote):
                                                             dump_program))
 
             # Pull Debug symbols:
-            # RPM distro's append their non-stripped ELF's with .debug
-            # When deb based distro's do not.
-            debug_program = '{dump_program}.debug'.format(
-                dump_program=dump_program)
             debug_path = os.path.join('/usr/lib/debug', remote_path)
 
+            # RPM distro's append their non-stripped ELF's with .debug
+            # When deb based distro's do not.
             if remote.system_type == 'rpm':
                 debug_path = '{debug_path}.debug'.format(debug_path=debug_path)
 
-            remote._sftp_get_file(debug_path, os.path.join(coredump_path, debug_program))
+            remote.get_file(debug_path, coredump_path)
 
 
 @contextlib.contextmanager