From eac3cc31c46d26a0a0d3e5f786ba266a29268c17 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 14 Oct 2011 16:33:56 +0200 Subject: [PATCH] export __debug in environment Signed-off-by: Steven Armstrong --- lib/cdist/context.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cdist/context.py b/lib/cdist/context.py index cf314409..ed1fd31d 100644 --- a/lib/cdist/context.py +++ b/lib/cdist/context.py @@ -41,6 +41,8 @@ class Context(object): debug=False): self.debug = debug + if self.debug: + os.environ['__debug'] = 'yes' self.target_host = target_host