Merge pull request #8622 from Icinga/bugfix/dependency-ti-typo-8180

dependency.ti: fix typo
This commit is contained in:
Julian Brost 2021-02-05 11:49:03 +01:00 committed by GitHub
commit ddbad7937d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,12 +32,12 @@ class Dependency : CustomVarObject < DependencyNameComposer
[config, navigation(child_service)] String child_service_name { [config, navigation(child_service)] String child_service_name {
track {{{ track {{{
if (!oldValue.IsEmpty()) { if (!oldValue.IsEmpty()) {
Service::Ptr service = Service::GetByNamePair(GetParentHostName(), oldValue); Service::Ptr service = Service::GetByNamePair(GetChildHostName(), oldValue);
DependencyGraph::RemoveDependency(this, service.get()); DependencyGraph::RemoveDependency(this, service.get());
} }
if (!newValue.IsEmpty()) { if (!newValue.IsEmpty()) {
Service::Ptr service = Service::GetByNamePair(GetParentHostName(), newValue); Service::Ptr service = Service::GetByNamePair(GetChildHostName(), newValue);
DependencyGraph::AddDependency(this, service.get()); DependencyGraph::AddDependency(this, service.get());
} }
}}} }}}