execute the correct manifest for objects

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-10 00:43:28 +02:00
parent 7eb418c3ab
commit 4e2e731374

View file

@ -406,11 +406,11 @@ class Cdist:
"__object_fq": cdist_object,
"__type": type
}
self.run_manifest(self.initial_manifest, extra_env=env)
self.run_manifest(manifest, extra_env=env)
def run_manifest(self, manifest, extra_env=None):
"""Run a manifest"""
log.info("Running manifest %s", manifest)
log.info("Running manifest %s, env=%s", manifest, extra_env)
env = os.environ.copy()
env['PATH'] = self.bin_dir + ":" + env['PATH']