Skip to content

Commit

Permalink
[ILM] Surface shrink action in edit form if it's already been set on …
Browse files Browse the repository at this point in the history
…the policy (#35987) (#35995)

* Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
  • Loading branch information
cjcenizal authored May 3, 2019
1 parent f61d3b5 commit 9f55caf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export const phaseFromES = (phase, phaseName, defaultEmptyPolicy) => {
}

if (actions.shrink) {
policy[PHASE_SHRINK_ENABLED] = true;
policy[PHASE_PRIMARY_SHARD_COUNT] = actions.shrink.number_of_shards;
}
if (actions.freeze) {
Expand Down

0 comments on commit 9f55caf

Please sign in to comment.