Commit 6f71e2c6 authored by Francis Dupont's avatar Francis Dupont

[676-add-support-for-server-tags-in-the-cb_cmds-hooks-library] Better fixes...

parent 06826b5e
......@@ -197,10 +197,11 @@ TestConfigBackendDHCPv4::getGlobalParameter4(const db::ServerSelector& server_se
for (auto tag : tags) {
if ((*global_it)->hasServerTag(ServerTag(tag))) {
return (*global_it);
} else if ((*global_it)->hasAllServerTag()) {
candidate = *global_it;
}
}
if ((*global_it)->hasAllServerTag()) {
candidate = *global_it;
}
}
return (candidate);
......
......@@ -197,7 +197,8 @@ TestConfigBackendDHCPv6::getGlobalParameter6(const db::ServerSelector& server_se
if ((*global_it)->hasServerTag(ServerTag(tag))) {
return (*global_it);
}
} else if ((*global_it)->hasAllServerTag()) {
}
if ((*global_it)->hasAllServerTag()) {
candidate = *global_it;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment