mirror of https://github.com/Icinga/icinga2.git
parent
7e13f7597f
commit
fddead5303
|
@ -156,7 +156,7 @@ void ScriptUtils::Log(const std::vector<Value>& arguments)
|
|||
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);
|
||||
else
|
||||
::Log(severity, facility, JsonEncode(message));
|
||||
|
|
|
@ -352,6 +352,8 @@ Value ConditionalExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
|||
return m_TrueBranch->Evaluate(frame, dhint);
|
||||
else if (m_FalseBranch)
|
||||
return m_FalseBranch->Evaluate(frame, dhint);
|
||||
|
||||
return Empty;
|
||||
}
|
||||
|
||||
Value ReturnExpression::DoEvaluate(VMFrame& frame, DebugHint *dhint) const
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace icinga
|
|||
{
|
||||
|
||||
class ApplyRule;
|
||||
class VMFrame;
|
||||
struct VMFrame;
|
||||
class Host;
|
||||
class Service;
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ enum NotificationType
|
|||
class NotificationCommand;
|
||||
class Checkable;
|
||||
class ApplyRule;
|
||||
class VMFrame;
|
||||
struct VMFrame;
|
||||
class Host;
|
||||
class Service;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace icinga
|
|||
{
|
||||
|
||||
class ApplyRule;
|
||||
class VMFrame;
|
||||
struct VMFrame;
|
||||
class Host;
|
||||
class Service;
|
||||
|
||||
|
|
Loading…
Reference in New Issue