diff options
author | Harald Musum <musum@verizonmedia.com> | 2020-07-29 13:16:46 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2020-07-29 13:16:46 +0200 |
commit | 426f7440c15e09854d75bc1835d205abaac03ec8 (patch) | |
tree | e90074e6d5bd889124238767232e24ab79f0e65c /config-model | |
parent | 8c5b3ff1f9345c73a3763d5adefe672859e39ef4 (diff) |
Remove ugly hack
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/HostSystem.java | 3 |
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); } |