-migration to CdistType error
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								0851af7d52
							
						
					
				
			
			
				commit
				
					
						f12a83f3dd
					
				
			
		
					 3 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -96,13 +96,13 @@ class Code(object):
 | 
			
		|||
            self.env.update({'__debug': "yes" })
 | 
			
		||||
 | 
			
		||||
    def _run_gencode(self, cdist_object, which):
 | 
			
		||||
        cdist_type = cdist_object.type
 | 
			
		||||
        cdist_type = cdist_object.cdist_type
 | 
			
		||||
        script = os.path.join(self.local.type_path, getattr(cdist_type, 'gencode_%s_path' % which))
 | 
			
		||||
        if os.path.isfile(script):
 | 
			
		||||
            env = os.environ.copy()
 | 
			
		||||
            env.update(self.env)
 | 
			
		||||
            env.update({
 | 
			
		||||
                '__type': cdist_object.type.absolute_path,
 | 
			
		||||
                '__type': cdist_object.cdist_type.absolute_path,
 | 
			
		||||
                '__object': cdist_object.absolute_path,
 | 
			
		||||
                '__object_id': cdist_object.object_id,
 | 
			
		||||
                '__object_name': cdist_object.name,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue