-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter_by_age doesn't throw Exception curator.exceptions.NoIndices #1561
Comments
The fix should be obvious but if you need me to write reproducible steps, i can. |
So which exception is being thrown? |
There is no exception being thrown at all (updated description). |
I just added steps to reproduce for clarity. |
It's been a while since I went through the code, but there may have been a reason I did not do this here. I will follow up when I can. |
curator --version action.yml actions: result: 2021-02-07 15:47:24,045 INFO Preparing Action ID: 1, "delete_indices" |
Expected Behavior
When
filter_by_age()
results in an empty list, the exceptioncurator.exceptions.NoIndices
should be thrown, same as is done forfilter_by_regex()
.Actual Behavior
When
filter_by_age()
is called, there is no empty list check as seen here in filter_by_regex(). Therefore, no exception is thrown if the filter results in an empty list.Steps to Reproduce the Problem
I would expect the following exception to be caught since I have no index older than
unit_count
. After this,ilo.indices
is an empty list.Specifications
Detailed Description
Put a call to
empty_list_check()
infilter_by_age()
so that the proper exception is thrown.The text was updated successfully, but these errors were encountered: