forked from ungleich-public/cdist
		
	Add missing args to method call.
This commit is contained in:
		
					parent
					
						
							
								0a85d913cc
							
						
					
				
			
			
				commit
				
					
						1b0f560608
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -148,7 +148,7 @@ class Remote(object):
 | 
				
			||||||
            yield command
 | 
					            yield command
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _transfer_dir_sequential(self, source, destination):
 | 
					    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)
 | 
					            self._run_command(command)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _transfer_dir_parallel(self, source, destination, jobs):
 | 
					    def _transfer_dir_parallel(self, source, destination, jobs):
 | 
				
			||||||
| 
						 | 
					@ -159,7 +159,10 @@ class Remote(object):
 | 
				
			||||||
            multiprocessing.get_start_method()))
 | 
					            multiprocessing.get_start_method()))
 | 
				
			||||||
        self.log.trace(("Starting multiprocessing Pool for parallel "
 | 
					        self.log.trace(("Starting multiprocessing Pool for parallel "
 | 
				
			||||||
                        "remote transfer"))
 | 
					                        "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:
 | 
					        if len(args) == 1:
 | 
				
			||||||
            self.log.debug("Only one dir entry, transfering sequentially")
 | 
					            self.log.debug("Only one dir entry, transfering sequentially")
 | 
				
			||||||
            self._run_command(args[0])
 | 
					            self._run_command(args[0])
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue