Skip to content

Commit

Permalink
elasticsearch_plugin: fix error when setting proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Hovius committed Feb 18, 2025
1 parent a3fd357 commit 8315353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "elasticsearch_plugin - fix ``ERROR: D is not a recognized option`` issue when configuring proxy settings (https://github.com/ansible-collections/community.general/pull/9774, https://github.com/ansible-collections/community.general/issues/9773)"
2 changes: 1 addition & 1 deletion plugins/modules/elasticsearch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def install_plugin(module, plugin_bin, plugin_name, version, src, url, proxy_hos
cmd_args[2] = plugin_name

if proxy_host and proxy_port:
cmd_args.append("-DproxyHost=%s -DproxyPort=%s" % (proxy_host, proxy_port))
cmd_args.append("-Dhttp.proxyHost=%s -Dhttp.proxyPort=%s -Dhttps.proxyHost=%s -Dhttps.proxyPort=%s" % (proxy_host, proxy_port, proxy_host, proxy_port))

# Legacy ES 1.x
if url:
Expand Down

0 comments on commit 8315353

Please sign in to comment.