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 (elastic#35987)

    * Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
  • Loading branch information
cjcenizal committed May 2, 2019
1 parent f61d3b5 commit 9ab7e9a
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 9ab7e9a

Please sign in to comment.