From e97549498c036f84a2e187bc41d320e27e300669 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 16 Jul 2020 15:28:38 +0100 Subject: [PATCH] Configuration: Allow unspecified optional list requirements --- volatility/framework/configuration/requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/configuration/requirements.py b/volatility/framework/configuration/requirements.py index b60d2fce2..42483b146 100644 --- a/volatility/framework/configuration/requirements.py +++ b/volatility/framework/configuration/requirements.py @@ -97,7 +97,7 @@ class ListRequirement(interfaces.configuration.RequirementInterface): if not value and self.min_elements > 0: vollog.log(constants.LOGLEVEL_V, "ListRequirement Unsatisfied - ListRequirement has non-zero min_elements") return {config_path: self} - if value == default: + if value is None and not self.optional: # We need to differentiate between no value and an empty list vollog.log(constants.LOGLEVEL_V, "ListRequirement Unsatisfied - Value was not specified") return {config_path: self}