update code to use new _path from object

and type

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/feature_files_export
Nico Schottelius 14 years ago
parent c6e8f163f5
commit b5c01f7354
  1. 4
      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")

Loading…
Cancel
Save