mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 01:55:20 +00:00
packs: Fix blacklist option bool assumption (#4400)
This commit is contained in:
parent
b4c7abb2b8
commit
201dd6d940
@ -221,9 +221,11 @@ void Pack::initialize(const std::string& name,
|
||||
} else {
|
||||
query.options["removed"] = JSON::valueToBool(q.value["removed"]);
|
||||
}
|
||||
query.options["blacklist"] = (q.value.HasMember("blacklist"))
|
||||
? q.value["blacklist"].GetBool()
|
||||
: true;
|
||||
|
||||
query.options["blacklist"] = true;
|
||||
if (q.value.HasMember("blacklist")) {
|
||||
query.options["blacklist"] = JSON::valueToBool(q.value["blacklist"]);
|
||||
}
|
||||
|
||||
schedule_.emplace(std::make_pair(q.name.GetString(), std::move(query)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user