mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
2cd5f3516d
commit
0d18b96c39
@ -59,6 +59,19 @@ Value MacroProcessor::ResolveMacros(const Value& str, const ResolverList& resolv
|
|||||||
}
|
}
|
||||||
|
|
||||||
result = resultArr;
|
result = resultArr;
|
||||||
|
} else if (str.IsObjectType<Dictionary>()) {
|
||||||
|
Dictionary::Ptr resultDict = new Dictionary();
|
||||||
|
Dictionary::Ptr dict = str;
|
||||||
|
|
||||||
|
ObjectLock olock(dict);
|
||||||
|
|
||||||
|
BOOST_FOREACH(const Dictionary::Pair& kv, dict) {
|
||||||
|
/* Note: don't escape macros here. */
|
||||||
|
resultDict->Set(kv.first, InternalResolveMacros(kv.second, resolvers, cr, missingMacro,
|
||||||
|
EscapeCallback(), resolvedMacros, useResolvedMacros));
|
||||||
|
}
|
||||||
|
|
||||||
|
result = resultDict;
|
||||||
} else if (str.IsObjectType<Function>()) {
|
} else if (str.IsObjectType<Function>()) {
|
||||||
result = EvaluateFunction(str, resolvers, cr, missingMacro, escapeFn, resolvedMacros, useResolvedMacros, 0);
|
result = EvaluateFunction(str, resolvers, cr, missingMacro, escapeFn, resolvedMacros, useResolvedMacros, 0);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user