From: Lucia Guevgeozian Odizzio Date: Wed, 12 Feb 2014 15:21:48 +0000 (+0100) Subject: Fixing bug for uploading a list of sources X-Git-Tag: nepi-3.1.0~125 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=35be685369dbd8b40c7238a3e74af6bb91021df1;p=nepi.git Fixing bug for uploading a list of sources --- 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,