From: Zack Cerza Date: Tue, 17 Mar 2015 16:44:21 +0000 (-0600) Subject: Use Remote.get_file() X-Git-Tag: 1.1.0~987^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F424%2Fhead;p=teuthology.git Use Remote.get_file() Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index ae46ae132..f18483783 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