summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorEirik Nygaard <eirik.nygaard@yahooinc.com>2022-06-01 15:06:03 +0200
committerEirik Nygaard <eirik.nygaard@yahooinc.com>2022-06-01 15:06:22 +0200
commit0298fd353c149ded31b88e4ef90f61d040f90641 (patch)
treeff976ddb61dec6a5c1d1076f4442ff66ec7a2237 /controller-server
parent36d5e14ce9f7e98db1cff90021a4b846d7cdccae (diff)
do not include uri twice
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java3
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/notification/NotifierTest.java2
2 files changed, 2 insertions, 3 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java
index f896d3747af..49c819548fe 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java
@@ -126,8 +126,7 @@ public class Notifier {
.collect(Collectors.joining("<br>\n")))
.append("</ul>\n")
.append("<br>\n")
- .append("<a href=\"" + content.uri() + "\">Vespa Console</a>")
- .append(content.uri().toString());
+ .append("<a href=\"" + content.uri() + "\">Vespa Console</a>");
return new Mail(recipients, subject, body.toString(), html.toString());
}
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/notification/NotifierTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/notification/NotifierTest.java
index 4b8e172289c..8bf0e584892 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/notification/NotifierTest.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/notification/NotifierTest.java
@@ -73,7 +73,7 @@ public class NotifierTest {
"<li>test package has production tests, but no production tests are declared in deployment.xml</li><br>\n" +
"<li>see <a href=\"https://docs.vespa.ai/en/testing.html\">https://docs.vespa.ai/en/testing.html</a> for details on how to write system tests for Vespa</li></ul>\n" +
"<br>\n" +
- "<a href=\"https://dashboard.tld/tenant1/default\">Vespa Console</a>https://dashboard.tld/tenant1/default",
+ "<a href=\"https://dashboard.tld/tenant1/default\">Vespa Console</a>",
mail.htmlMessage().get());
}