forked from ungleich-public/cdist
		
	bugfix: only attempt to transfer object parameters it their are any
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								97ab6effa4
							
						
					
				
			
			
				commit
				
					
						6223402b9e
					
				
			
		
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -117,6 +117,7 @@ class Explorer(object):
 | 
			
		|||
 | 
			
		||||
    def transfer_object_parameters(self, cdist_object):
 | 
			
		||||
        """Transfer the parameters for the given object to the remote side."""
 | 
			
		||||
        if cdist_object.parameters:
 | 
			
		||||
            source = os.path.join(self.local.object_path, cdist_object.parameter_path)
 | 
			
		||||
            destination = os.path.join(self.remote.object_path, cdist_object.parameter_path)
 | 
			
		||||
            self.remote.mkdir(destination)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue