mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user