From c71acb80c3a23296c11c86094a56a21c34eb270b Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Wed, 2 Dec 2020 23:10:17 +0100 Subject: Allow no status --- .../java/com/yahoo/vespa/hosted/provision/applications/Cluster.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/Cluster.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/Cluster.java index 98fcd3f56fa..c996daf588b 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/Cluster.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/applications/Cluster.java @@ -50,8 +50,6 @@ public class Cluster { this.target = targetResources; this.scalingEvents = List.copyOf(scalingEvents); this.autoscalingStatus = autoscalingStatus; - if (autoscalingStatus.isEmpty() && targetResources.isPresent()) - throw new RuntimeException("Autoscaling status set empty for " + id + " even though target is " + targetResources); } public ClusterSpec.Id id() { return id; } -- cgit v1.2.3