mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-13 18:50:22 -04:00
Fix formatting of long fn
This commit is contained in:
parent
159e3d2945
commit
2bb6f9d38d
1 changed files with 10 additions and 15 deletions
|
|
@ -587,13 +587,11 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
|||
useResolvedMacros = false;
|
||||
}
|
||||
|
||||
String resolved_endpoint = MacroProcessor::ResolveMacros(endpoint,
|
||||
resolvers,
|
||||
checkable->GetLastCheckResult(),
|
||||
nullptr,
|
||||
MacroProcessor::EscapeCallback(),
|
||||
resolvedMacros,
|
||||
useResolvedMacros);
|
||||
String resolved_endpoint = MacroProcessor::ResolveMacros(
|
||||
endpoint, resolvers, checkable->GetLastCheckResult(),
|
||||
nullptr, MacroProcessor::EscapeCallback(), resolvedMacros,
|
||||
useResolvedMacros
|
||||
);
|
||||
|
||||
/* Check if resolved_endpoint is not empty */
|
||||
if (resolved_endpoint.IsEmpty())
|
||||
|
|
@ -627,13 +625,11 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
|||
}
|
||||
|
||||
/* Resolve command macro */
|
||||
String resolved_command = MacroProcessor::ResolveMacros(command,
|
||||
resolvers,
|
||||
checkable->GetLastCheckResult(),
|
||||
nullptr,
|
||||
MacroProcessor::EscapeCallback(),
|
||||
resolvedMacros,
|
||||
useResolvedMacros);
|
||||
String resolved_command = MacroProcessor::ResolveMacros(
|
||||
command, resolvers, checkable->GetLastCheckResult(),
|
||||
nullptr, MacroProcessor::EscapeCallback(), resolvedMacros,
|
||||
useResolvedMacros
|
||||
);
|
||||
|
||||
/* Check if resolved_command is not empty */
|
||||
if (resolved_command.IsEmpty())
|
||||
|
|
@ -735,4 +731,3 @@ Dictionary::Ptr ApiActions::ExecuteCommand(const ConfigObject::Ptr& object,
|
|||
result->Set(checkable->GetName(), uuid);
|
||||
return ApiActions::CreateResult(202, "Accepted", result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue