From 35be685369dbd8b40c7238a3e74af6bb91021df1 Mon Sep 17 00:00:00 2001 From: Lucia Guevgeozian Odizzio Date: Wed, 12 Feb 2014 16:21:48 +0100 Subject: [PATCH] Fixing bug for uploading a list of sources --- src/nepi/util/sshfuncs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nepi/util/sshfuncs.py b/src/nepi/util/sshfuncs.py index d4d02ffa..80df6906 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -580,6 +580,9 @@ def rcopy(source, dest, # Do not check for Host key. Unsafe. args.extend(['-o', 'StrictHostKeyChecking=no']) + if ' ' in source: + source = source.split(' ') + if isinstance(source,list): args.extend(source) else: @@ -591,7 +594,7 @@ def rcopy(source, dest, args.append(source) args.append(dest) - + for x in xrange(retry): # connects to the remote host and starts a remote connection proc = subprocess.Popen(args, -- 2.47.0