forked from ungleich-public/cdist
filter out install objects when running config
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
82612bc312
commit
4ace4348a7
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue