File tree 1 file changed +5
-9
lines changed
userspace/falco/app/actions
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,11 @@ falco::app::run_result falco::app::actions::open_live_inspector(falco::app::stat
61
61
falco_logger::log (
62
62
falco_logger::level::INFO,
63
63
" Opening '" + source + " ' source with plugin '" + cfg->m_name + " '" );
64
- if (s.config ->m_plugins_hostinfo ) {
65
- inspector->open_plugin (cfg->m_name ,
66
- cfg->m_open_params ,
67
- sinsp_plugin_platform::SINSP_PLATFORM_HOSTINFO);
68
- } else {
69
- inspector->open_plugin (cfg->m_name ,
70
- cfg->m_open_params ,
71
- sinsp_plugin_platform::SINSP_PLATFORM_GENERIC);
72
- }
64
+ inspector->open_plugin (cfg->m_name ,
65
+ cfg->m_open_params ,
66
+ s.config ->m_plugins_hostinfo
67
+ ? sinsp_plugin_platform::SINSP_PLATFORM_HOSTINFO
68
+ : sinsp_plugin_platform::SINSP_PLATFORM_GENERIC);
73
69
return run_result::ok ();
74
70
}
75
71
}
You can’t perform that action at this time.
0 commit comments