summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2018-12-18 08:47:40 +0100
committerMartin Polden <mpolden@mpolden.no>2018-12-18 08:48:18 +0100
commitb1ae4c3e8e2a966d5be5579f442953946ace1dd5 (patch)
tree50c029e366a3f768c530d00d422ce8ba285935a4 /controller-api
parentfd4f35fdc2c1991617037bc8d252c2ce57900005 (diff)
Remove corp job
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
index e5f34f3721a..5a4086f9abb 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
@@ -16,8 +16,6 @@ public enum JobType {
component ("component" , null , null ),
systemTest ("system-test" , ZoneId.from("test" , "us-east-1") , ZoneId.from("test" , "cd-us-central-1") ),
stagingTest ("staging-test" , ZoneId.from("staging", "us-east-3") , ZoneId.from("staging", "cd-us-central-1") ),
- // TODO: Remove after corp zone disappears
- productionCorpUsEast1 ("production-corp-us-east-1" , ZoneId.from("prod" , "corp-us-east-1") , null ),
productionUsEast3 ("production-us-east-3" , ZoneId.from("prod" , "us-east-3") , null ),
productionUsWest1 ("production-us-west-1" , ZoneId.from("prod" , "us-west-1") , null ),
productionUsCentral1 ("production-us-central-1" , ZoneId.from("prod" , "us-central-1") , null ),
@@ -48,7 +46,7 @@ public enum JobType {
/** Returns the zone for this job in the given system, or throws if this job does not have a zone */
public ZoneId zone(SystemName system) {
if ( ! zones.containsKey(system))
- throw new AssertionError(this + " does not have any zones in " + system + ".");
+ throw new IllegalArgumentException(this + " does not have any zones in " + system);
return zones.get(system);
}