lib/elasticsearch/api/actions/security/put_role.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/security/put_role.rb in elasticsearch-api-8.1.2

- old
+ new

@@ -30,14 +30,13 @@ # def put_role(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) - - arguments = arguments.clone _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT path = "_security/role/#{Utils.__listify(_name)}"