summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-07-29 13:16:46 +0200
committerHarald Musum <musum@verizonmedia.com>2020-07-29 13:16:46 +0200
commit426f7440c15e09854d75bc1835d205abaac03ec8 (patch)
treee90074e6d5bd889124238767232e24ab79f0e65c /config-model
parent8c5b3ff1f9345c73a3763d5adefe672859e39ef4 (diff)
Remove ugly hack
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/HostSystem.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/HostSystem.java b/config-model/src/main/java/com/yahoo/vespa/model/HostSystem.java
index 0192e9d42c6..6213f0592fd 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/HostSystem.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/HostSystem.java
@@ -70,8 +70,7 @@ public class HostSystem extends AbstractConfigProducer<Host> {
HostResource hostResource = hostname2host.get(name);
if (hostResource == null) {
// Create a new HostResource if this is the host this code is running on (as it is when running tests)
- // TODO: please eliminate the ugly hack using "localhost.fortestingpurposesonly"
- if (HostName.getLocalhost().equals(name) || "localhost.fortestingpurposesonly".equals(name)) {
+ if (HostName.getLocalhost().equals(name)) {
if (! getChildren().containsKey(localhost)) {
new Host(this, localhost);
}