diff --git a/lib/icinga/macroprocessor.cpp b/lib/icinga/macroprocessor.cpp index df1e41d17..c92ab19d4 100644 --- a/lib/icinga/macroprocessor.cpp +++ b/lib/icinga/macroprocessor.cpp @@ -511,6 +511,8 @@ Value MacroProcessor::ResolveArguments(const Value& command, const Dictionary::P continue; } + arg.SkipValue = arg.SkipValue || arg.AValue.GetType() == ValueEmpty; + args.emplace_back(std::move(arg)); }