diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-06-02 21:51:02 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-06-02 21:51:02 +0200 |
commit | 286fc89284a322b49c0815d7bbc740256d30d28f (patch) | |
tree | 5be500574e72c1c36d44442e31f8717378a1ca20 /node-repository | |
parent | 714d3bf6b0a4b60dde75143c3062cdddf69af093 (diff) |
Remove cloud account restriction
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java | 4 |
1 files changed, 0 insertions, 4 deletions
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"); |