lib/elasticsearch/api/actions/security/clear_cached_privileges.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/security/clear_cached_privileges.rb in elasticsearch-api-8.0.1
- old
+ new
@@ -27,14 +27,13 @@
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html
#
def clear_cached_privileges(arguments = {})
raise ArgumentError, "Required argument 'application' missing" unless arguments[:application]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
-
- arguments = arguments.clone
_application = arguments.delete(:application)
method = Elasticsearch::API::HTTP_POST
path = "_security/privilege/#{Utils.__listify(_application)}/_clear_cache"