mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Pass string command in run_command (#48805)
When there are spaces in command args passed as a list, then run_command and underlying subprocess fails. This can be overcome by passing command as string rather than list. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
a721572206
commit
789b0ef0c9
2 changed files with 5 additions and 5 deletions
|
@ -2710,7 +2710,7 @@ class AnsibleModule(object):
|
|||
:kw data: If given, information to write to the stdin of the command
|
||||
:kw binary_data: If False, append a newline to the data. Default False
|
||||
:kw path_prefix: If given, additional path to find the command in.
|
||||
This adds to the PATH environment vairable so helper commands in
|
||||
This adds to the PATH environment variable so helper commands in
|
||||
the same directory can also be found
|
||||
:kw cwd: If given, working directory to run the command inside
|
||||
:kw use_unsafe_shell: See `args` parameter. Default False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue