From a812496165ea953b107f1e5e1852219e5bfc91ed Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 17 Mar 2015 10:44:21 -0600 Subject: [PATCH] Use Remote.get_file() Signed-off-by: Zack Cerza --- teuthology/task/internal.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index ae46ae132a..f184837836 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -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 -- 2.39.5