mirror of https://github.com/Icinga/icinga2.git
Merge pull request #9772 from Icinga/icinga-db-feature-should-normalize-command-arguments-required-skip_key-repeat_key-to-boolean-9576
Icinga DB feature: normalize *Command.arguments[*].{required,skip_key…
This commit is contained in:
commit
d871c5c837
|
@ -1019,6 +1019,15 @@ void IcingaDB::InsertObjectDependencies(const ConfigObject::Ptr& object, const S
|
|||
}
|
||||
}
|
||||
|
||||
for (const char *attr : {"repeat_key", "required", "skip_key"}) {
|
||||
Value value;
|
||||
|
||||
// Boolify if set.
|
||||
if (values->Get(attr, &value)) {
|
||||
values->Set(attr, value.ToBool());
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
Value order;
|
||||
|
||||
|
|
Loading…
Reference in New Issue