Skip to content

Commit

Permalink
Add get stored script and delete stored script to high level REST API…
Browse files Browse the repository at this point in the history
… - post backport fix

Relates to #27205
  • Loading branch information
Vladimir Dolzhenko committed Jun 19, 2018
1 parent 04e4e44 commit 2396cbd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void readFrom(StreamInput in) throws IOException {
source = null;
}

if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
id = in.readString();
}
}
Expand All @@ -143,7 +143,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeString(source.getSource());
}
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
out.writeString(id);
}
}
Expand Down

0 comments on commit 2396cbd

Please sign in to comment.