From 6734ff693f88f0ba6dfa6d76a75a9014fa53794f Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Wed, 19 Oct 2011 15:39:38 +0200 Subject: [PATCH] fix object_prepare to use object.state Signed-off-by: Steven Armstrong --- lib/cdist/config_install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index 9c2b6e4c..74412f96 100644 --- a/lib/cdist/config_install.py +++ b/lib/cdist/config_install.py @@ -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"""