forked from ungleich-public/cdist
resolve required objects using new object_from_name method
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
b122b53d73
commit
74f4ec2f5d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue