Merge pull request #7567 from Icinga/bugfix/apt-dist-upgrade-7558

MacroProcessor::ResolveArguments(): skip null argument values
This commit is contained in:
Michael Friedrich 2019-11-15 14:43:33 +01:00 committed by GitHub
commit 88c1a197b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}