From 4ace4348a7386d3750eaf6ed67873a48f11f4fc4 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 30 Aug 2013 12:56:12 +0200 Subject: [PATCH] filter out install objects when running config Signed-off-by: Steven Armstrong --- cdist/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cdist/config.py b/cdist/config.py index 59cf339a..988695ed 100644 --- a/cdist/config.py +++ b/cdist/config.py @@ -162,7 +162,10 @@ class Config(object): """Short name for object list retrieval""" for cdist_object in core.CdistObject.list_objects(self.local.object_path, self.local.type_path): - yield cdist_object + if cdist_object.cdist_type.is_install: + self.log.debug("Running in config mode, ignoring install object: {0}".format(cdist_object)) + else: + yield cdist_object def iterate_once(self): """