You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be some way to configure an alias action that removes time based indexes from an alias to not fail when nothing needs to be done without resorting to continue_if_exception.
Actual Behavior
Even if ignore_empty_list and warn_if_no_indices are True, an ActionError is still thrown because there are no add or remove operations.
Steps to Reproduce the Problem
Create a few monthly indexes. e.g., myindex_2020-10, myindex_2020-11, myindex_2020-12.
Add them all to an alias "myindex".
Run this action to include only the last month and this month in the alias:
On the first run, it is fine, it removes the 2020-10 index.
Run it again and it fails because there is nothing to do.
Context (Environment)
I just want to run a command that makes sure my aliases are in the correct state. If there is nothing to do, that's GOOD! But I can't have confidence in the outcome if I am forced to ignore all exceptions.
Curator Version is 5.8.1
The text was updated successfully, but these errors were encountered:
Expected Behavior
There should be some way to configure an alias action that removes time based indexes from an alias to not fail when nothing needs to be done without resorting to continue_if_exception.
Actual Behavior
Even if ignore_empty_list and warn_if_no_indices are True, an ActionError is still thrown because there are no add or remove operations.
Steps to Reproduce the Problem
Create a few monthly indexes. e.g., myindex_2020-10, myindex_2020-11, myindex_2020-12.
Add them all to an alias "myindex".
Run this action to include only the last month and this month in the alias:
On the first run, it is fine, it removes the 2020-10 index.
Run it again and it fails because there is nothing to do.
Context (Environment)
I just want to run a command that makes sure my aliases are in the correct state. If there is nothing to do, that's GOOD! But I can't have confidence in the outcome if I am forced to ignore all exceptions.
Curator Version is 5.8.1
The text was updated successfully, but these errors were encountered: