move log.info down

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2011-10-19 15:34:24 +02:00
parent 0e7c532870
commit e98272e0c5

View file

@ -125,8 +125,7 @@ class ConfigInstall(object):
def object_run(self, cdist_object):
"""Run gencode and code for an object"""
self.log.info("Running gencode and code for " + cdist_object.name)
self.log.info("" + cdist_object.name)
if cdist_object.state == cdist.core.object.STATE_RUNNING:
raise cdist.Error("Detected circular dependency in " + cdist_object.__str__())
elif cdist_object.state == cdist.core.object.STATE_DONE:
@ -142,6 +141,8 @@ class ConfigInstall(object):
required_object = cdist_object.object_from_name(requirement)
self.object_run(required_object)
self.log.info("Running gencode and code for " + cdist_object.name)
# Generate
cdist_object.code_local = self.code.run_gencode_local(cdist_object)
cdist_object.code_remote = self.code.run_gencode_remote(cdist_object)