mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-11 08:34:21 -07:00
[PR #10603/6b7ec564 backport][stable-11] riak: command args as list rather than string (#10632)
riak: command args as list rather than string (#10603)
* riak: command args as list rather than string
* add changelog frag
(cherry picked from commit 6b7ec5648d
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
3fa1c3ac2c
commit
682469b9b8
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/10603-riak-cmd-list.yml
Normal file
2
changelogs/fragments/10603-riak-cmd-list.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- riak - using safer mechanism to run external command (https://github.com/ansible-collections/community.general/pull/10603).
|
|
@ -153,7 +153,7 @@ def main():
|
|||
version=version)
|
||||
|
||||
if command == 'ping':
|
||||
cmd = '%s ping %s' % (riak_bin, target_node)
|
||||
cmd = [riak_bin, 'ping', target_node]
|
||||
rc, out, err = module.run_command(cmd)
|
||||
if rc == 0:
|
||||
result['ping'] = out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue