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