Skip to content

Commit

Permalink
Update RegistrationRequest.java
Browse files Browse the repository at this point in the history
Fixes #6691

(cherry picked from commit b768318)
Signed-off-by: Diego Molina <diemol@gmail.com>
  • Loading branch information
matthewdoerksen authored and diemol committed Dec 17, 2018
1 parent 1ed30b5 commit 13866be
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ public static RegistrationRequest fromJson(Map<String, Object> raw) throws JsonE
String converted = json.toJson(raw.get("configuration"));
request.configuration = GridConfiguredJson.toType(converted, GridNodeConfiguration.class);
}

if (raw.get("configuration") instanceof GridNodeConfiguration) {
request.configuration = (GridNodeConfiguration)raw.get("configuration");
}

return request;
}
Expand Down

0 comments on commit 13866be

Please sign in to comment.