mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-03 06:00:17 +02:00
parent
8fd454fbb1
commit
fa1fa23c55
@ -242,7 +242,13 @@ Dictionary::Ptr NodeUtility::LoadNodeFile(const String& node_file)
|
|||||||
|
|
||||||
void NodeUtility::CollectNodes(const String& node_file, std::vector<Dictionary::Ptr>& nodes)
|
void NodeUtility::CollectNodes(const String& node_file, std::vector<Dictionary::Ptr>& nodes)
|
||||||
{
|
{
|
||||||
Dictionary::Ptr node = LoadNodeFile(node_file);
|
Dictionary::Ptr node;
|
||||||
|
|
||||||
|
try {
|
||||||
|
node = LoadNodeFile(node_file);
|
||||||
|
} catch (const std::exception&) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user