mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
7e13f7597f
commit
fddead5303
@ -156,7 +156,7 @@ void ScriptUtils::Log(const std::vector<Value>& arguments)
|
|||||||
message = arguments[2];
|
message = arguments[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.IsString() || !message.IsObjectType<Array>() && !message.IsObjectType<Dictionary>())
|
if (message.IsString() || (!message.IsObjectType<Array>() && !message.IsObjectType<Dictionary>()))
|
||||||
::Log(severity, facility, message);
|
::Log(severity, facility, message);
|
||||||
else
|
else
|
||||||
::Log(severity, facility, JsonEncode(message));
|
::Log(severity, facility, JsonEncode(message));
|
||||||
|
@ -352,6 +352,8 @@ Value ConditionalExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
|||||||
return m_TrueBranch->Evaluate(frame, dhint);
|
return m_TrueBranch->Evaluate(frame, dhint);
|
||||||
else if (m_FalseBranch)
|
else if (m_FalseBranch)
|
||||||
return m_FalseBranch->Evaluate(frame, dhint);
|
return m_FalseBranch->Evaluate(frame, dhint);
|
||||||
|
|
||||||
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
Value ReturnExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
Value ReturnExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
||||||
|
@ -28,7 +28,7 @@ namespace icinga
|
|||||||
{
|
{
|
||||||
|
|
||||||
class ApplyRule;
|
class ApplyRule;
|
||||||
class VMFrame;
|
struct VMFrame;
|
||||||
class Host;
|
class Host;
|
||||||
class Service;
|
class Service;
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ enum NotificationType
|
|||||||
class NotificationCommand;
|
class NotificationCommand;
|
||||||
class Checkable;
|
class Checkable;
|
||||||
class ApplyRule;
|
class ApplyRule;
|
||||||
class VMFrame;
|
struct VMFrame;
|
||||||
class Host;
|
class Host;
|
||||||
class Service;
|
class Service;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ namespace icinga
|
|||||||
{
|
{
|
||||||
|
|
||||||
class ApplyRule;
|
class ApplyRule;
|
||||||
class VMFrame;
|
struct VMFrame;
|
||||||
class Host;
|
class Host;
|
||||||
class Service;
|
class Service;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user