mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 23:57:29 +00:00
fix: set config value and create node if not existing
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
c93029ce74
commit
c005af22cc
@ -403,10 +403,5 @@ void falco_configuration::set_cmdline_option(const string &opt)
|
||||
throw logic_error("Error parsing config option \"" + opt + "\". Must be of the form key=val or key.subkey=val");
|
||||
}
|
||||
|
||||
if(!m_config->is_defined(keyval.first))
|
||||
{
|
||||
throw logic_error("Error parsing config option \"" + opt + "\". Option does not exist");
|
||||
}
|
||||
|
||||
m_config->set_scalar(keyval.first, keyval.second);
|
||||
}
|
||||
|
@ -83,10 +83,7 @@ public:
|
||||
{
|
||||
YAML::Node node;
|
||||
get_node(node, key);
|
||||
if(node.IsDefined())
|
||||
{
|
||||
node = value;
|
||||
}
|
||||
node = value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user