From 1b0f560608d6da57da0f56b959a2db9d7b677de7 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Thu, 27 Jul 2017 09:51:23 +0200 Subject: [PATCH] Add missing args to method call. --- cdist/exec/remote.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cdist/exec/remote.py b/cdist/exec/remote.py index 8b10b324..10add276 100644 --- a/cdist/exec/remote.py +++ b/cdist/exec/remote.py @@ -148,7 +148,7 @@ class Remote(object): yield command def _transfer_dir_sequential(self, source, destination): - for command in self._transfer_dir_commands: + for command in self._transfer_dir_commands(source, destination): self._run_command(command) def _transfer_dir_parallel(self, source, destination, jobs): @@ -159,7 +159,10 @@ class Remote(object): multiprocessing.get_start_method())) self.log.trace(("Starting multiprocessing Pool for parallel " "remote transfer")) - args = [(command, ) for command in self._transfer_dir_commands] + args = [ + (command, ) + for command in self._transfer_dir_commands(source, destination) + ] if len(args) == 1: self.log.debug("Only one dir entry, transfering sequentially") self._run_command(args[0])