diff options
author | jonmv <venstad@gmail.com> | 2022-04-29 18:23:02 +0200 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2022-04-29 18:23:02 +0200 |
commit | 12d0c8aa162ad2ca497469e6371eebc45206d63b (patch) | |
tree | 3126e2e5095525ce3591c82f97ed18c42a63dccb /orchestrator/src/main | |
parent | 5d5f5b5996d5acd10490692e1faa65c2b180008a (diff) |
Fix serialization of state request
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)); |