resolve required objects using new object_from_name method

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/feature_files_export
Steven Armstrong 13 years ago
parent b122b53d73
commit 74f4ec2f5d
  1. 3
      lib/cdist/config_install.py

@ -136,7 +136,8 @@ class ConfigInstall(object):
for requirement in cdist_object.requirements:
self.log.debug("Object %s requires %s", cdist_object, requirement)
# FIXME: requirement is a string, need to create object here
self.object_run(requirement)
required_object = cdist_object.object_from_name(requirement)
self.object_run(required_object)
# Generate
cdist_object.code_local = self.code.run_gencode_local(cdist_object)

Loading…
Cancel
Save