From be21cdce178ed0083ace63c11ff717a2a79c8178 Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Thu, 13 Oct 2011 16:41:54 +0200
Subject: [PATCH] set __cdist_manifest for use in type emulator

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 lib/cdist/core/manifest.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/cdist/core/manifest.py b/lib/cdist/core/manifest.py
index fc82b1cc..8d7f6e36 100644
--- a/lib/cdist/core/manifest.py
+++ b/lib/cdist/core/manifest.py
@@ -79,6 +79,7 @@ class Manifest(object):
         env = os.environ.copy()
         env.update(self.env)
         env['__manifest'] = self.local.manifest_path
+        env['__cdist_manifest'] = script
         return self.local.run_script(script, env=env)
 
     def run_type_manifest(self, cdist_object):