Skip to content

Commit

Permalink
Merge pull request #8622 from Icinga/bugfix/dependency-ti-typo-8180
Browse files Browse the repository at this point in the history
dependency.ti: fix typo
  • Loading branch information
julianbrost authored Feb 5, 2021
2 parents aa0baf6 + ebfa733 commit ddbad79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/icinga/dependency.ti
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ class Dependency : CustomVarObject < DependencyNameComposer
[config, navigation(child_service)] String child_service_name {
track {{{
if (!oldValue.IsEmpty()) {
Service::Ptr service = Service::GetByNamePair(GetParentHostName(), oldValue);
Service::Ptr service = Service::GetByNamePair(GetChildHostName(), oldValue);
DependencyGraph::RemoveDependency(this, service.get());
}

if (!newValue.IsEmpty()) {
Service::Ptr service = Service::GetByNamePair(GetParentHostName(), newValue);
Service::Ptr service = Service::GetByNamePair(GetChildHostName(), newValue);
DependencyGraph::AddDependency(this, service.get());
}
}}}
Expand Down

0 comments on commit ddbad79

Please sign in to comment.