summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-12-07 11:06:27 +0100
committerJon Bratseth <bratseth@gmail.com>2020-12-07 11:07:47 +0100
commitfbe17005def2d74da5b8ddf35a80dcf546c355b9 (patch)
tree33fa12817362f8deb72ea8f28c4bd786ac27bc3f /controller-server
parentf2ececfb183ef73d6a53d74ee84798e0dc7eaf36 (diff)
Compare just numbers
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
index cbf6307f5e6..be51f39374b 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/restapi/application/ApplicationApiHandler.java
@@ -699,7 +699,8 @@ public class ApplicationApiHandler extends LoggingRequestHandler {
toSlime(cluster.min(), clusterObject.setObject("min"));
toSlime(cluster.max(), clusterObject.setObject("max"));
toSlime(cluster.current(), clusterObject.setObject("current"));
- if (cluster.target().isPresent() && ! cluster.target().get().equals(cluster.current()))
+ if (cluster.target().isPresent()
+ && ! cluster.target().get().justNumbers().equals(cluster.current().justNumbers()))
toSlime(cluster.target().get(), clusterObject.setObject("target"));
cluster.suggested().ifPresent(suggested -> toSlime(suggested, clusterObject.setObject("suggested")));
scalingEventsToSlime(cluster.scalingEvents(), clusterObject.setArray("scalingEvents"));