resolve required objects using new object_from_name method

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-14 09:06:32 +02:00
parent b122b53d73
commit 74f4ec2f5d

View file

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