update code to use new _path from object

and type

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-07 17:04:52 +02:00
parent c6e8f163f5
commit b5c01f7354
1 changed files with 2 additions and 2 deletions

View File

@ -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")