aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-api
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2019-12-10 08:06:36 +0100
committerGitHub <noreply@github.com>2019-12-10 08:06:36 +0100
commit9372a0c7c16fc58f5c3ccf539f46fefc4a74e930 (patch)
tree730e2ea69e2ce14916d433f0132efec96da06bba /hosted-api
parentb0ee7fe95e72ebe0ad5a058a92bba948153fd2c5 (diff)
Use given environment, not dev, for default zone
Diffstat (limited to 'hosted-api')
-rw-r--r--hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java2
1 files changed, 1 insertions, 1 deletions
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 9edd59508d4..c5626f7d690 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
@@ -120,7 +120,7 @@ public abstract class ControllerHttpClient {
Inspector rootObject = toInspector(send(request(HttpRequest.newBuilder(defaultRegionPath(environment))
.timeout(Duration.ofSeconds(10)),
GET)));
- return ZoneId.from("dev", rootObject.field("name").asString());
+ return ZoneId.from(environment.value(), rootObject.field("name").asString());
}
/** Returns the Vespa version to compile against, for a hosted Vespa application. This is its lowest runtime version. */