mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-22 01:08:04 +02:00
Check if last check result is null before executing the command
This commit is contained in:
parent
5467b7aa37
commit
f790b7699d
@ -637,6 +637,8 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
||||
);
|
||||
|
||||
CheckResult::Ptr cr = checkable->GetLastCheckResult();
|
||||
if (!cr)
|
||||
cr = new CheckResult();
|
||||
|
||||
/* Check if resolved_command exists and it is of type command_type */
|
||||
Dictionary::Ptr execMacros = new Dictionary();
|
||||
|
Loading…
x
Reference in New Issue
Block a user