only run type manifest if it exists

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-13 16:53:07 +02:00
parent 74300ab38e
commit 6dada17509
1 changed files with 11 additions and 10 deletions

View File

@ -84,6 +84,7 @@ class Manifest(object):
def run_type_manifest(self, cdist_object):
script = os.path.join(self.local.type_path, cdist_object.type.manifest_path)
if os.path.isfile(script):
env = os.environ.copy()
env.update(self.env)
env.update({