dont re-run already fulfilled requirements
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
24bf7369d9
commit
c45c9cd702
1 changed files with 5 additions and 2 deletions
|
@ -140,8 +140,11 @@ 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)
|
||||||
required_object = cdist_object.object_from_name(requirement)
|
required_object = cdist_object.object_from_name(requirement)
|
||||||
self.log.info("Resolving dependency %s for %s" % (required_object.name, cdist_object.name))
|
if required_object.state == core.Object.STATE_DONE:
|
||||||
self.object_run(required_object)
|
self.log.debug("Skipping fulfilled dependency %s for %s", required_object, cdist_object)
|
||||||
|
else:
|
||||||
|
self.log.info("Resolving dependency %s for %s" % (required_object.name, cdist_object.name))
|
||||||
|
self.object_run(required_object)
|
||||||
|
|
||||||
self.log.info("Running gencode and code for " + cdist_object.name)
|
self.log.info("Running gencode and code for " + cdist_object.name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue