From ea402fc0c546a79cb73818ea520f6164e1a254ce Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 7 Oct 2011 16:18:38 +0200 Subject: [PATCH] use new call to object lists in absolute path Signed-off-by: Nico Schottelius --- lib/cdist/config_install.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index a553f6d8..2905df67 100644 --- a/lib/cdist/config_install.py +++ b/lib/cdist/config_install.py @@ -232,7 +232,7 @@ class ConfigInstall: def stage_run(self): """The final (and real) step of deployment""" log.info("Generating and executing code") - for cdist_object in cdist.core.Object.list_objects(): + for cdist_object in cdist.core.Object.list_objects(self.context.object_base_path): log.debug("Run object: %s", cdist_object) self.object_run(cdist_object) @@ -247,8 +247,6 @@ class ConfigInstall: self.deploy_to() self.cleanup() -####FIXED ###################################################################### - def stage_prepare(self): """Do everything for a deploy, minus the actual code stage""" self.link_emulator() @@ -261,7 +259,7 @@ class ConfigInstall: new_objects_created = True while new_objects_created: new_objects_created = False - for cdist_object in cdist.core.Object.list_objects(): + for cdist_object in cdist.core.Object.list_objects(self.context.object_base_path): if cdist_object.prepared: log.debug("Skipping rerun of object %s", cdist_object) continue