Skip to content

Commit b5b9372

Browse files
authored
Merge pull request #1266 from Abyss-W4tcher/set_default_req_value
[configuration.py] use default req value in config_value call
2 parents 5525ce5 + 67ee382 commit b5b9372

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

volatility3/framework/interfaces/configuration.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ def unsatisfied(
494494
"""Validates the instance requirement based upon its
495495
`instance_type`."""
496496
config_path = path_join(config_path, self.name)
497-
498-
value = self.config_value(context, config_path, None)
497+
value = self.config_value(context, config_path, self.default)
499498
if not isinstance(value, self.instance_type):
500499
vollog.log(
501500
constants.LOGLEVEL_V,
@@ -536,7 +535,7 @@ def unsatisfied(
536535
"""Checks to see if a class can be recovered."""
537536
config_path = path_join(config_path, self.name)
538537

539-
value = self.config_value(context, config_path, None)
538+
value = self.config_value(context, config_path, self.default)
540539
self._cls = None
541540
if value is not None and isinstance(value, str):
542541
if "." in value:

0 commit comments

Comments
 (0)