diff --git a/plugin/src/main/java/org/opensearch/ml/profile/MLModelProfile.java b/plugin/src/main/java/org/opensearch/ml/profile/MLModelProfile.java index 94a0502b7b..2b8b10644c 100644 --- a/plugin/src/main/java/org/opensearch/ml/profile/MLModelProfile.java +++ b/plugin/src/main/java/org/opensearch/ml/profile/MLModelProfile.java @@ -56,7 +56,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws builder.field("predictor", predictor); } if (targetWorkerNodes != null) { - builder.field("worker_nodes", targetWorkerNodes); + builder.field("target_worker_nodes", targetWorkerNodes); } if (workerNodes != null) { builder.field("worker_nodes", workerNodes);