From 4956c015c15d7284c00a0e8962e79001d396f25f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 16 Sep 2011 14:50:43 +0200 Subject: [PATCH] make __type available for type gencode Signed-off-by: Nico Schottelius --- bin/cdist | 1 + doc/man/cdist-reference.text.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cdist b/bin/cdist index 327d86be..40b8dd5e 100755 --- a/bin/cdist +++ b/bin/cdist @@ -514,6 +514,7 @@ class Cdist: env["__object"] = self.object_dir(cdist_object) env["__object_id"] = self.get_object_id_from_object(cdist_object) env["__object_fq"] = cdist_object + env["__type"] = self.type_dir(get_type_from_object(cdist_object)) if mode == "gencode": paths = self.type_gencode_paths(self.get_type_from_object(cdist_object)) diff --git a/doc/man/cdist-reference.text.sh b/doc/man/cdist-reference.text.sh index 218b0f57..e38f157d 100755 --- a/doc/man/cdist-reference.text.sh +++ b/doc/man/cdist-reference.text.sh @@ -182,7 +182,7 @@ __target_user:: Currently static in core. __type:: Path to the current type. - Available for: type manifest + Available for: type manifest, type gencode __type_explorer:: Directory that contains the type explorers. Available for: type explorer