From 74f4ec2f5d085f6a3b5f2065407055489deba6dc Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 14 Oct 2011 09:06:32 +0200 Subject: [PATCH] resolve required objects using new object_from_name method Signed-off-by: Steven Armstrong --- lib/cdist/config_install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cdist/config_install.py b/lib/cdist/config_install.py index 96a1555d..0d051685 100644 --- a/lib/cdist/config_install.py +++ b/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)