Minor fix for construct_layers.

This commit is contained in:
Mike Auty
2019-09-26 21:16:46 +01:00
parent ae010a2390
commit 066a4e64f2
2 changed files with 1 additions and 2 deletions
@@ -39,7 +39,7 @@ class ConstructionMagic(interfaces.automagic.AutomagicInterface):
subreq_config_path = interfaces.configuration.path_join(config_path, requirement.name)
for subreq in requirement.requirements.values():
try:
self(context, subreq_config_path, subreq, optional or subreq.optional)
self(context, subreq_config_path, subreq, optional = optional or subreq.optional)
except Exception as e:
# We don't really care if this fails, it tends to mean the configuration isn't complete for that item
vollog.log(constants.LOGLEVEL_VVVV, "Construction Exception occurred: {}".format(e))