forked from ungleich-public/cdist
move log.info down
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
0e7c532870
commit
e98272e0c5
1 changed files with 3 additions and 2 deletions
|
@ -125,8 +125,7 @@ class ConfigInstall(object):
|
||||||
|
|
||||||
def object_run(self, cdist_object):
|
def object_run(self, cdist_object):
|
||||||
"""Run gencode and code for an 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:
|
if cdist_object.state == cdist.core.object.STATE_RUNNING:
|
||||||
raise cdist.Error("Detected circular dependency in " + cdist_object.__str__())
|
raise cdist.Error("Detected circular dependency in " + cdist_object.__str__())
|
||||||
elif cdist_object.state == cdist.core.object.STATE_DONE:
|
elif cdist_object.state == cdist.core.object.STATE_DONE:
|
||||||
|
@ -142,6 +141,8 @@ class ConfigInstall(object):
|
||||||
required_object = cdist_object.object_from_name(requirement)
|
required_object = cdist_object.object_from_name(requirement)
|
||||||
self.object_run(required_object)
|
self.object_run(required_object)
|
||||||
|
|
||||||
|
self.log.info("Running gencode and code for " + cdist_object.name)
|
||||||
|
|
||||||
# Generate
|
# Generate
|
||||||
cdist_object.code_local = self.code.run_gencode_local(cdist_object)
|
cdist_object.code_local = self.code.run_gencode_local(cdist_object)
|
||||||
cdist_object.code_remote = self.code.run_gencode_remote(cdist_object)
|
cdist_object.code_remote = self.code.run_gencode_remote(cdist_object)
|
||||||
|
|
Loading…
Reference in a new issue