Fixing bug for uploading a list of sources
authorLucia Guevgeozian Odizzio <lucia.guevgeozian_odizzio@inria.fr>
Wed, 12 Feb 2014 15:21:48 +0000 (16:21 +0100)
committerLucia Guevgeozian Odizzio <lucia.guevgeozian_odizzio@inria.fr>
Wed, 12 Feb 2014 15:21:48 +0000 (16:21 +0100)
src/nepi/util/sshfuncs.py

index d4d02ff..80df690 100644 (file)
@@ -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,