| 17 | using namespace icinga; |
| 18 | |
| 19 | static 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 | |
| 35 | static bool IncludeZoneDirRecursive(const String& path, const String& package, bool& success) |
| 36 | { |
no test coverage detected