summaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ApplicationList.java
diff options
context:
space:
mode:
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ApplicationList.java')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ApplicationList.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ApplicationList.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ApplicationList.java
index ca6fa083f1b..6f1e108ea77 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ApplicationList.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/application/ApplicationList.java
@@ -84,12 +84,12 @@ public class ApplicationList {
/** Returns the subset of applications which have changes left to deploy; blocked, or deploying */
public ApplicationList withChanges() {
- return listOf(list.stream().filter(application -> application.change().isPresent() || application.outstandingChange().isPresent()));
+ return listOf(list.stream().filter(application -> application.change().hasTargets() || application.outstandingChange().hasTargets()));
}
/** Returns the subset of applications which are currently not deploying a change */
public ApplicationList notDeploying() {
- return listOf(list.stream().filter(application -> ! application.change().isPresent()));
+ return listOf(list.stream().filter(application -> ! application.change().hasTargets()));
}
/** Returns the subset of applications which currently does not have any failing jobs */