mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-01 06:37:22 +00:00
fix(userspace/falco): use resolved plugin name when opening a plugin.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
@@ -63,7 +63,7 @@ falco::app::run_result falco::app::actions::open_live_inspector(
|
||||
{
|
||||
auto cfg = s.plugin_configs.at(p->name());
|
||||
falco_logger::log(falco_logger::level::INFO, "Opening '" + source + "' source with plugin '" + cfg->m_name + "'");
|
||||
inspector->open_plugin(cfg->m_name, cfg->m_open_params);
|
||||
inspector->open_plugin(p->name(), cfg->m_open_params);
|
||||
return run_result::ok();
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ falco::app::run_result falco::app::actions::open_live_inspector(
|
||||
{
|
||||
auto cfg = s.plugin_configs.at(p->name());
|
||||
falco_logger::log(falco_logger::level::INFO, "Opening '" + source + "' source with plugin '" + cfg->m_name + "'");
|
||||
inspector->open_plugin(cfg->m_name, cfg->m_open_params);
|
||||
inspector->open_plugin(p->name(), cfg->m_open_params);
|
||||
return run_result::ok();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user