Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fix "list native roles" task (#779)
Browse files Browse the repository at this point in the history
This commit fix "List Native Roles" task with Elasticsearch 7.11.0+
by removing the unused `body_format` parameter from `uri` module.

This parameter isn't used with a GET method but make request fail with
`request [GET /_security/role] does not support having a body` error
with Elasticsearch 7.11.0+.
  • Loading branch information
jmlrt authored Feb 22, 2021
1 parent e2caeb8 commit 30fcd95
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tasks/xpack/security/elasticsearch-security-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@
uri:
url: "{{ es_api_uri }}/{{ es_security_api }}/role"
method: GET
body_format: json
user: "{{es_api_basic_auth_username}}"
password: "{{es_api_basic_auth_password}}"
force_basic_auth: yes
Expand Down

0 comments on commit 30fcd95

Please sign in to comment.