MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ExecuteExpression

Function ExecuteExpression

lib/cli/daemonutility.cpp:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace icinga;
18
19static bool ExecuteExpression(Expression *expression)
20{
21 if (!expression)
22 return false;
23
24 try {
25 ScriptFrame frame(true);
26 expression->Evaluate(frame);
27 } catch (const std::exception& ex) {
28 Log(LogCritical, "config", DiagnosticInformation(ex));
29 return false;
30 }
31
32 return true;
33}
34
35static bool IncludeZoneDirRecursive(const String& path, const String& package, bool& success)
36{

Callers 4

IncludeZoneDirRecursiveFunction · 0.85
IncludeNonLocalZoneFunction · 0.85
IncludePackageFunction · 0.85
ValidateConfigFilesMethod · 0.85

Calls 2

LogClass · 0.85
EvaluateMethod · 0.80

Tested by

no test coverage detected