mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-28 20:44:52 +02:00
Remove code from plugins, since plugins aren't callable anymore.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
from volatility.framework import interfaces
|
||||
|
||||
|
||||
def plugin_function(plugin, context, config_path, **kwargs):
|
||||
"""Run the plugin as a function"""
|
||||
if not isinstance(plugin, interfaces.plugins.PluginInterface):
|
||||
raise TypeError("Plugin must be a PluginInterface derived object")
|
||||
if not isinstance(context, interfaces.context.ContextInterface):
|
||||
raise TypeError("Context must be a ContextInterface derived object")
|
||||
if not isinstance(config_path, str):
|
||||
raise TypeError("Config_path must a be string")
|
||||
constructed = plugin(context, config_path)
|
||||
return constructed(**kwargs)
|
||||
|
||||
Reference in New Issue
Block a user