Merge pull request #9150 from Icinga/bugfix/icingadb-cmd-arg-order-int

Icinga DB: ensure icinga:*command:argument#order is an int
This commit is contained in:
Julian Brost 2022-01-05 16:07:30 +01:00 committed by GitHub
commit a99c04030c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1009,6 +1009,15 @@ void IcingaDB::InsertObjectDependencies(const ConfigObject::Ptr& object, const S
}
}
{
Value order;
// Intify if set.
if (values->Get("order", &order)) {
values->Set("order", (int)order);
}
}
values->Set(objectKeyName, objectKey);
values->Set("argument_key", kv.first);
values->Set("environment_id", m_EnvironmentId);