forked from ungleich-public/cdist
		
	fix object_prepare to use object.state
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								e98272e0c5
							
						
					
				
			
			
				commit
				
					
						6734ff693f
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -87,7 +87,7 @@ class ConfigInstall(object):
 | 
			
		|||
            new_objects_created = False
 | 
			
		||||
            for cdist_object in core.Object.list_objects(self.local.object_path,
 | 
			
		||||
                                                         self.local.type_path):
 | 
			
		||||
                if cdist_object.state == cdist.core.object.STATE_PREPARED:
 | 
			
		||||
                if cdist_object.state == core.Object.STATE_PREPARED:
 | 
			
		||||
                    self.log.debug("Skipping re-prepare of object %s", cdist_object)
 | 
			
		||||
                    continue
 | 
			
		||||
                else:
 | 
			
		||||
| 
						 | 
				
			
			@ -121,7 +121,7 @@ class ConfigInstall(object):
 | 
			
		|||
        self.log.info("Running manifest and explorers for " + cdist_object.name)
 | 
			
		||||
        self.run_type_explorers(cdist_object)
 | 
			
		||||
        self.manifest.run_type_manifest(cdist_object)
 | 
			
		||||
        cdist_object.state = cdist.core.object.STATE_PREPARED
 | 
			
		||||
        cdist_object.state = core.Object.STATE_PREPARED
 | 
			
		||||
 | 
			
		||||
    def object_run(self, cdist_object):
 | 
			
		||||
        """Run gencode and code for an object"""
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue