Fix spelling.
This commit is contained in:
		
					parent
					
						
							
								3d56aa83ac
							
						
					
				
			
			
				commit
				
					
						8c03518962
					
				
			
		
					 3 changed files with 10 additions and 10 deletions
				
			
		| 
						 | 
					@ -556,19 +556,19 @@ class Config(object):
 | 
				
			||||||
            self.log.trace("Multiprocessing cargo_types: %s", cargo_types)
 | 
					            self.log.trace("Multiprocessing cargo_types: %s", cargo_types)
 | 
				
			||||||
            nt = len(cargo_types)
 | 
					            nt = len(cargo_types)
 | 
				
			||||||
            if nt == 1:
 | 
					            if nt == 1:
 | 
				
			||||||
                self.log.debug(("Only one type, transfering explorers "
 | 
					                self.log.debug(("Only one type, transferring explorers "
 | 
				
			||||||
                                "sequentially"))
 | 
					                                "sequentially"))
 | 
				
			||||||
                self.explorer.transfer_type_explorers(cargo_types.pop())
 | 
					                self.explorer.transfer_type_explorers(cargo_types.pop())
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                self.log.trace(("Starting multiprocessing Pool for {} "
 | 
					                self.log.trace(("Starting multiprocessing Pool for {} "
 | 
				
			||||||
                                "parallel transfering types' explorers".format(
 | 
					                                "parallel types explorers transferring".format(
 | 
				
			||||||
                                    nt)))
 | 
					                                    nt)))
 | 
				
			||||||
                args = [
 | 
					                args = [
 | 
				
			||||||
                    (ct, ) for ct in cargo_types
 | 
					                    (ct, ) for ct in cargo_types
 | 
				
			||||||
                ]
 | 
					                ]
 | 
				
			||||||
                mp_pool_run(self.explorer.transfer_type_explorers, args,
 | 
					                mp_pool_run(self.explorer.transfer_type_explorers, args,
 | 
				
			||||||
                            jobs=self.jobs)
 | 
					                            jobs=self.jobs)
 | 
				
			||||||
                self.log.trace(("Multiprocessing for parallel transfering "
 | 
					                self.log.trace(("Multiprocessing for parallel transferring "
 | 
				
			||||||
                                "types' explorers finished"))
 | 
					                                "types' explorers finished"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            self.log.trace(("Starting multiprocessing Pool for {} parallel "
 | 
					            self.log.trace(("Starting multiprocessing Pool for {} parallel "
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -176,14 +176,14 @@ class Explorer(object):
 | 
				
			||||||
        self.log.verbose("Running type explorers for {}".format(
 | 
					        self.log.verbose("Running type explorers for {}".format(
 | 
				
			||||||
            cdist_object.cdist_type))
 | 
					            cdist_object.cdist_type))
 | 
				
			||||||
        if transfer_type_explorers:
 | 
					        if transfer_type_explorers:
 | 
				
			||||||
            self.log.trace("Transfering type explorers for type: %s",
 | 
					            self.log.trace("Transferring type explorers for type: %s",
 | 
				
			||||||
                           cdist_object.cdist_type)
 | 
					                           cdist_object.cdist_type)
 | 
				
			||||||
            self.transfer_type_explorers(cdist_object.cdist_type)
 | 
					            self.transfer_type_explorers(cdist_object.cdist_type)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            self.log.trace(("No need for transfering type explorers for "
 | 
					            self.log.trace(("No need for transferring type explorers for "
 | 
				
			||||||
                            "type: %s"),
 | 
					                            "type: %s"),
 | 
				
			||||||
                           cdist_object.cdist_type)
 | 
					                           cdist_object.cdist_type)
 | 
				
			||||||
        self.log.trace("Transfering object parameters for object: %s",
 | 
					        self.log.trace("Transferring object parameters for object: %s",
 | 
				
			||||||
                       cdist_object.name)
 | 
					                       cdist_object.name)
 | 
				
			||||||
        self.transfer_object_parameters(cdist_object)
 | 
					        self.transfer_object_parameters(cdist_object)
 | 
				
			||||||
        for explorer in self.list_type_explorer_names(cdist_object.cdist_type):
 | 
					        for explorer in self.list_type_explorer_names(cdist_object.cdist_type):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -190,7 +190,7 @@ class Remote(object):
 | 
				
			||||||
                    self.log.trace(
 | 
					                    self.log.trace(
 | 
				
			||||||
                        "Archiving mode desttarpath: %s", desttarpath)
 | 
					                        "Archiving mode desttarpath: %s", desttarpath)
 | 
				
			||||||
                    # transfer archive to the remote side
 | 
					                    # transfer archive to the remote side
 | 
				
			||||||
                    self.log.trace("Archiving mode: transfering")
 | 
					                    self.log.trace("Archiving mode: transferring")
 | 
				
			||||||
                    self._transfer_file(tarpath, desttarpath)
 | 
					                    self._transfer_file(tarpath, desttarpath)
 | 
				
			||||||
                    # extract archive at the remote
 | 
					                    # extract archive at the remote
 | 
				
			||||||
                    self.log.trace("Archiving mode: extracting")
 | 
					                    self.log.trace("Archiving mode: extracting")
 | 
				
			||||||
| 
						 | 
					@ -248,15 +248,15 @@ class Remote(object):
 | 
				
			||||||
        # variable declarations
 | 
					        # variable declarations
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # cdist command prepended with variable assignments expects
 | 
					        # cdist command prepended with variable assignments expects
 | 
				
			||||||
        # posix shell (bourne, bash) at the remote as user default shell.
 | 
					        # POSIX shell (bourne, bash) at the remote as user default shell.
 | 
				
			||||||
        # If remote user shell isn't poxis shell, but for e.g. csh/tcsh
 | 
					        # If remote user shell isn't POSIX shell, but for e.g. csh/tcsh
 | 
				
			||||||
        # then these var assignments are not var assignments for this
 | 
					        # then these var assignments are not var assignments for this
 | 
				
			||||||
        # remote shell, it tries to execute it as a command and fails.
 | 
					        # remote shell, it tries to execute it as a command and fails.
 | 
				
			||||||
        # So really do this by default:
 | 
					        # So really do this by default:
 | 
				
			||||||
        # /bin/sh -c 'export <var assignments>; command'
 | 
					        # /bin/sh -c 'export <var assignments>; command'
 | 
				
			||||||
        # so that constructed remote command isn't dependent on remote
 | 
					        # so that constructed remote command isn't dependent on remote
 | 
				
			||||||
        # shell. Do this only if env is not None. env breaks this.
 | 
					        # shell. Do this only if env is not None. env breaks this.
 | 
				
			||||||
        # Explicitly use /bin/sh, because var assignments assume poxis
 | 
					        # Explicitly use /bin/sh, because var assignments assume POSIX
 | 
				
			||||||
        # shell already.
 | 
					        # shell already.
 | 
				
			||||||
        # This leaves the posibility to write script that needs to be run
 | 
					        # This leaves the posibility to write script that needs to be run
 | 
				
			||||||
        # remotely in e.g. csh and setting up CDIST_REMOTE_SHELL to e.g.
 | 
					        # remotely in e.g. csh and setting up CDIST_REMOTE_SHELL to e.g.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue