Skip to content
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

More fixes to Elasticsearch output build #923

Merged
merged 1 commit into from Feb 27, 2020

Conversation

robbavey
Copy link
Contributor

Later versions of the Elasticsearch mandate a name parameter to the
exists_alias method. This commit updates the tests to include that
parameter.

Additionally, there are some fixes to move towards an "inclusion" list
of policies to delete, rather than an "exclusion" list.

Later versions of the Elasticsearch mandate a `name` parameter to the
`exists_alias` method. This commit updates the tests to include that
parameter.

Additionally, there are some fixes to move towards an "inclusion" list
of policies to delete, rather than an "exclusion" list.
Copy link
Contributor

@kares kares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not that familiar w ES but from looking at the specs + change-set these are nice improvements.

@@ -139,7 +139,7 @@ def put_alias(client, the_alias, index)
end

def clean_ilm(client)
client.get_ilm_policy.each_key { |key| client.delete_ilm_policy(name: key) unless key =~ /history-ilm-policy/ }
client.get_ilm_policy.each_key { |key| client.delete_ilm_policy(name: key) if key =~ /logstash-policy/ }
Copy link
Contributor

@kares kares Feb 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 to have a logstash- prefix convention and only delete what specs create!

@robbavey robbavey merged commit ae256bf into logstash-plugins:master Feb 27, 2020
@robbavey
Copy link
Contributor Author

Thanks @kares!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants