update code to use new _path from object
and type Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								c6e8f163f5
							
						
					
				
			
			
				commit
				
					
						b5c01f7354
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -132,11 +132,11 @@ class ConfigInstall: | |||
|         # gencode | ||||
|         for cmd in ["local", "remote"]: | ||||
|             bin = os.path.join(self.context.type_base_path, | ||||
|                     getattr(cdist_type, "gencode_" + cmd)) | ||||
|                     getattr(cdist_type, "gencode_" + cmd + "_path")) | ||||
| 
 | ||||
|             if os.path.isfile(bin): | ||||
|                 outfile = os.path.join(self.context.object_base_path, | ||||
|                             getattr(cdist_object, "code_" + cmd)) | ||||
|                             getattr(cdist_object, "code_" + cmd + "_path")) | ||||
| 
 | ||||
|                 outfile_fd = open(outfile, "w") | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue