mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-30 21:44:52 +02:00
Plugins: Allow None types in the configuration tree as values
This commit is contained in:
@@ -102,7 +102,7 @@ class PluginInterface(interfaces.configuration.ConfigurableInterface,
|
||||
raise exceptions.PluginRequirementException("The plugin configuration failed to validate")
|
||||
# Populate any optional defaults
|
||||
for requirement in self.get_requirements():
|
||||
if requirement.name not in self.config and requirement.default is not None:
|
||||
if requirement.name not in self.config:
|
||||
self.config[requirement.name] = requirement.default
|
||||
|
||||
self._file_consumer = None # type: Optional[FileConsumerInterface]
|
||||
|
||||
Reference in New Issue
Block a user