mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
logstash_plugin - invoke run_command passing list (#3808)
* logstash_plugin - invoke run_command passing list * added changelog fragment * rogue chglog frag escaped its caged and was seen running around into a different PR
This commit is contained in:
parent
2edbabd30f
commit
c587d21ba0
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- logstash_plugin - calling ``run_command`` with arguments as ``list`` instead of ``str`` (https://github.com/ansible-collections/community.general/pull/3808).
|
|
@ -82,7 +82,7 @@ PACKAGE_STATE_MAP = dict(
|
||||||
|
|
||||||
def is_plugin_present(module, plugin_bin, plugin_name):
|
def is_plugin_present(module, plugin_bin, plugin_name):
|
||||||
cmd_args = [plugin_bin, "list", plugin_name]
|
cmd_args = [plugin_bin, "list", plugin_name]
|
||||||
rc, out, err = module.run_command(" ".join(cmd_args))
|
rc, out, err = module.run_command(cmd_args)
|
||||||
return rc == 0
|
return rc == 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue