Skip to content

Commit

Permalink
Merge pull request #9772 from Icinga/icinga-db-feature-should-normali…
Browse files Browse the repository at this point in the history
…ze-command-arguments-required-skip_key-repeat_key-to-boolean-9576

Icinga DB feature: normalize *Command.arguments[*].{required,skip_key…
  • Loading branch information
julianbrost authored May 25, 2023
2 parents 68cebc6 + ad618e9 commit d871c5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/icingadb/icingadb-objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d871c5c

Please sign in to comment.