From 6a056e5fe0e321f4a5c3084f8902bf9dab3c9a2a Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Thu, 22 Aug 2019 12:59:13 +0200 Subject: Add delete mojo --- .../src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hosted-api/src') diff --git a/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java b/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java index 3d85d531f73..bcbcb99587d 100644 --- a/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java +++ b/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java @@ -104,9 +104,9 @@ public abstract class ControllerHttpClient { /** Deactivates the deployment of the given application in the given zone. */ public String deactivate(ApplicationId id, ZoneId zone) { - return asString(send(request(HttpRequest.newBuilder(deploymentPath(id, zone)) - .timeout(Duration.ofSeconds(10)), - DELETE))); + return toMessage(send(request(HttpRequest.newBuilder(deploymentPath(id, zone)) + .timeout(Duration.ofSeconds(30)), + DELETE))); } /** Returns the default {@link ZoneId} for the given environment, if any. */ -- cgit v1.2.3