dependency.ti: fix typo

refs #8180
This commit is contained in:
Alexander A. Klimov 2021-02-04 18:29:54 +01:00
parent ef23ae5f3c
commit ebfa73388f
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 {
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());
}
}}}