diff options
Diffstat (limited to 'orchestrator/src/main')
-rw-r--r-- | orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java index 7c7dca3b03e..37a690bd2bd 100644 --- a/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java +++ b/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/controller/ClusterControllerClientImpl.java @@ -142,9 +142,9 @@ public class ClusterControllerClientImpl implements ClusterControllerClient { static byte[] stateChangeRequestBytes(ClusterControllerNodeState wantedState, Condition condition, boolean isProbe) { Cursor root = new Slime().setObject(); - Cursor stateObject = root.setObject("user"); - stateObject.setString("reason", REQUEST_REASON); - stateObject.setString("state", wantedState.getWireName()); + Cursor userObject = root.setObject("state").setObject("user"); + userObject.setString("reason", REQUEST_REASON); + userObject.setString("state", wantedState.getWireName()); root.setString("condition", condition.name()); if (isProbe) root.setBool("probe", true); return Exceptions.uncheck(() -> SlimeUtils.toJsonBytes(root)); |