From 066a4e64f2058e29bc32f71ac9ada0d566da4a7c Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 26 Sep 2019 21:16:46 +0100 Subject: [PATCH] Minor fix for construct_layers. --- volatility/cli/volshell/__init__.py | 1 - volatility/framework/automagic/construct_layers.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/volatility/cli/volshell/__init__.py b/volatility/cli/volshell/__init__.py index cd669f028..ca502eeda 100644 --- a/volatility/cli/volshell/__init__.py +++ b/volatility/cli/volshell/__init__.py @@ -12,7 +12,6 @@ from urllib import request import volatility.plugins import volatility.symbols from volatility import cli, framework -from volatility.cli import text_renderer from volatility.cli.volshell import generic, windows, linux, mac from volatility.framework import automagic, constants, contexts, exceptions, interfaces, plugins diff --git a/volatility/framework/automagic/construct_layers.py b/volatility/framework/automagic/construct_layers.py index 2d36fa0a0..9b980aafa 100644 --- a/volatility/framework/automagic/construct_layers.py +++ b/volatility/framework/automagic/construct_layers.py @@ -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))