mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
Logstash plugin version fix (#11440)
* logstash_plugin: fix argument order when using version parameter * logstash_plugin: add integration tests * logstash_plugin: add changelog fragment
This commit is contained in:
parent
c0df366471
commit
53e1e86bcc
4 changed files with 82 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ def parse_error(string):
|
|||
|
||||
|
||||
def install_plugin(module, plugin_bin, plugin_name, version, proxy_host, proxy_port):
|
||||
cmd_args = [plugin_bin, PACKAGE_STATE_MAP["present"], plugin_name]
|
||||
cmd_args = [plugin_bin, PACKAGE_STATE_MAP["present"]]
|
||||
|
||||
if version:
|
||||
cmd_args.extend(["--version", version])
|
||||
|
|
@ -102,6 +102,8 @@ def install_plugin(module, plugin_bin, plugin_name, version, proxy_host, proxy_p
|
|||
if proxy_host and proxy_port:
|
||||
cmd_args.extend([f"-DproxyHost={proxy_host}", f"-DproxyPort={proxy_port}"])
|
||||
|
||||
cmd_args.append(plugin_name)
|
||||
|
||||
cmd = " ".join(cmd_args)
|
||||
|
||||
if module.check_mode:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue