mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-24 18:28:00 +02:00
Check if executions are not null
This commit is contained in:
parent
7414624309
commit
dade9cb0a5
@ -970,6 +970,8 @@ Value ClusterEvents::UpdateExecutionsAPIHandler(const MessageOrigin::Ptr& origin
|
|||||||
}
|
}
|
||||||
|
|
||||||
Dictionary::Ptr executions = checkable->GetExecutions();
|
Dictionary::Ptr executions = checkable->GetExecutions();
|
||||||
|
if (!executions)
|
||||||
|
executions = new Dictionary();
|
||||||
Dictionary::Ptr newExecutions = params->Get("executions");
|
Dictionary::Ptr newExecutions = params->Get("executions");
|
||||||
newExecutions->CopyTo(executions);
|
newExecutions->CopyTo(executions);
|
||||||
checkable->SetExecutions(executions);
|
checkable->SetExecutions(executions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user