mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-12 04:37:38 +02:00
Parameterize the plugin calling, with run as the default.
This commit is contained in:
@@ -57,8 +57,9 @@ class PluginInterface(interfaces_configuration.ConfigurableInterface, validity.V
|
||||
:rtype: interfaces.renderers.TreeGrid
|
||||
"""
|
||||
|
||||
def __call__(self, **kwargs):
|
||||
def __call__(self, method = 'run', **kwargs):
|
||||
"""Method to make a plugin callable. It must still have been instantiated with a context and a config_path"""
|
||||
for k, v in kwargs:
|
||||
self.config[k] = v
|
||||
return self.run()
|
||||
method = getattr(self, method)
|
||||
return method()
|
||||
|
||||
Reference in New Issue
Block a user