mirror of https://github.com/Icinga/icinga2.git
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:
commit
a99c04030c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue