From 286fc89284a322b49c0815d7bbc740256d30d28f Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Thu, 2 Jun 2022 21:51:02 +0200 Subject: Remove cloud account restriction --- .../src/main/java/com/yahoo/vespa/hosted/provision/Node.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'node-repository/src/main') diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java index 4476befe70a..e91963ab621 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java @@ -122,10 +122,6 @@ public final class Node implements Nodelike { if (cloudAccount().isPresent()) throw new IllegalArgumentException("A child node cannot have cloud account set"); } - if (cloudAccount.isPresent() && exclusiveToApplicationId.isEmpty()) { - throw new IllegalArgumentException("Host in a custom cloud account must be exclusive to an application"); - } - if (type != NodeType.host && reservedTo.isPresent()) throw new IllegalArgumentException("Only tenant hosts can be reserved to a tenant"); -- cgit v1.2.3