Skip to content

Commit

Permalink
Adapt Icinga#7786 to the new ConfigItem::CommitNewItems()
Browse files Browse the repository at this point in the history
  • Loading branch information
ymartin-ovh committed Oct 9, 2023
1 parent e627dcc commit d98cdd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/remote/apilistener-configsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ void ApiListener::SendRuntimeConfigObjects(const JsonRpcConnection::Ptr& aclient
bool unresolved_dep = false;

/* skip this type (for now) if there are unresolved load dependencies */
for (const String& loadDep : type->GetLoadDependencies()) {
Type::Ptr pLoadDep = Type::GetByName(loadDep);
for (auto pLoadDep : type->GetLoadDependencies()) {
if (types.find(pLoadDep) != types.end() && completed_types.find(pLoadDep) == completed_types.end()) {
unresolved_dep = true;
break;
Expand Down

0 comments on commit d98cdd0

Please sign in to comment.