From b5c01f7354e92981ae7ed6c6e0beaadb9d700f3c Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Fri, 7 Oct 2011 17:04:52 +0200
Subject: [PATCH] update code to use new _path from object and type
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
lib/cdist/config_install.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py
index db0c8caf..c4c1af10 100644
--- a/lib/cdist/config_install.py
+++ b/lib/cdist/config_install.py
@@ -132,11 +132,11 @@ class ConfigInstall:
# gencode
for cmd in ["local", "remote"]:
bin = os.path.join(self.context.type_base_path,
- getattr(cdist_type, "gencode_" + cmd))
+ getattr(cdist_type, "gencode_" + cmd + "_path"))
if os.path.isfile(bin):
outfile = os.path.join(self.context.object_base_path,
- getattr(cdist_object, "code_" + cmd))
+ getattr(cdist_object, "code_" + cmd + "_path"))
outfile_fd = open(outfile, "w")