lib/elasticsearch/api/actions/security/clear_cached_realms.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/security/clear_cached_realms.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -28,14 +28,13 @@
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/security-api-clear-cache.html
#
def clear_cached_realms(arguments = {})
raise ArgumentError, "Required argument 'realms' missing" unless arguments[:realms]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
-
- arguments = arguments.clone
_realms = arguments.delete(:realms)
method = Elasticsearch::API::HTTP_POST
path = "_security/realm/#{Utils.__listify(_realms)}/_clear_cache"