summaryrefslogtreecommitdiffstats
path: root/orchestrator
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2022-05-02 20:24:04 +0200
committerGitHub <noreply@github.com>2022-05-02 20:24:04 +0200
commit0289582a5d6ab048309c65cb5218bf57256e78e6 (patch)
tree8837f8a536c925938916a3fb791368f0187b1c15 /orchestrator
parent3a757528a0a978d44cb1bd9aae28b567c477d139 (diff)
Revert "Remove another HTTP client wrapper"
Diffstat (limited to 'orchestrator')
-rw-r--r--orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java
index 28ba259d2ae..37a690bd2bd 100644
--- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java
+++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java
@@ -181,8 +181,7 @@ public class ClusterControllerClientImpl implements ClusterControllerClient {
Inspector root = SlimeUtils.jsonToSlime(body).get();
String detail = root.field("message").valid() ? root.field("message").asString()
: new String(body, UTF_8);
- return new ResponseException(statusCode,
- "got status code " + statusCode + " for " + request + (detail.isBlank() ? "" : ": " + detail));
+ return new ResponseException("got status code " + statusCode + " for " + request + (detail.isBlank() ? "" : ": " + detail));
}
};