mirror of https://github.com/Icinga/icinga2.git
parent
2e3a1ff0c6
commit
f788795415
|
@ -70,10 +70,17 @@ void PluginUtility::ExecuteCommand(const Command::Ptr& commandObj, const Checkab
|
|||
for (const Dictionary::Pair& kv : env) {
|
||||
String name = kv.second;
|
||||
|
||||
String missingMacro;
|
||||
Value value = MacroProcessor::ResolveMacros(name, macroResolvers, cr,
|
||||
nullptr, MacroProcessor::EscapeCallback(), resolvedMacros,
|
||||
&missingMacro, MacroProcessor::EscapeCallback(), resolvedMacros,
|
||||
useResolvedMacros);
|
||||
|
||||
#ifdef I2_DEBUG
|
||||
if (!missingMacro.IsEmpty())
|
||||
Log(LogDebug, "PluginUtility")
|
||||
<< "Macro '" << name << "' is not defined.";
|
||||
#endif /* I2_DEBUG */
|
||||
|
||||
if (value.IsObjectType<Array>())
|
||||
value = Utility::Join(value, ';');
|
||||
|
||||
|
|
Loading…
Reference in New Issue