Skip to content

Commit

Permalink
Fix key name
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysmeister committed Oct 9, 2024
1 parent d2d49f8 commit 90a1d5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/module_utils/elastic_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def build_auth(self, module):
module.params['login_password'])
elif module.params['auth_method'] == 'api_key':
# api key authentication. Won't work for v7 of the driver
auth["api_key_encoded"] = module.params['api_key_encoded']
# The api_key is actually the base64 encoded version of
# the id and api_key separated by a colon.
auth["api_key"] = module.params['api_key_encoded']
else:
module.fail_json("Invalid or unsupported auth_method provided")

Expand Down

0 comments on commit 90a1d5d

Please sign in to comment.