Merge pull request #6377 from Icinga/fix/wq-name

Fix missing name for workqueue while creating runtime objects via API
This commit is contained in:
Michael Friedrich 2018-06-15 14:32:35 +02:00 committed by GitHub
commit 8aaabea54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,8 @@ bool ConfigObjectUtility::CreateObject(const Type::Ptr& type, const String& full
expr.reset();
WorkQueue upq;
upq.SetName("ConfigObjectUtility::CreateObject");
std::vector<ConfigItem::Ptr> newItems;
if (!ConfigItem::CommitItems(ascope.GetContext(), upq, newItems) || !ConfigItem::ActivateItems(upq, newItems, true)) {