|
Link Here
|
| 1 |
--- lib/ansible/plugins/action/__init__.py.orig 2016-01-14 22:33:27 UTC |
|
|
| 2 |
+++ lib/ansible/plugins/action/__init__.py |
| 3 |
@@ -475,8 +475,7 @@ class ActionBase(with_metaclass(ABCMeta, |
| 4 |
display.debug("done with _execute_module (%s, %s)" % (module_name, module_args)) |
| 5 |
return data |
| 6 |
|
| 7 |
- def _low_level_execute_command(self, cmd, sudoable=True, in_data=None, |
| 8 |
- executable=None, encoding_errors='replace'): |
| 9 |
+ def _low_level_execute_command(self, cmd, sudoable=True, in_data=None, executable=C.DEFAULT_EXECUTABLE, encoding_errors='replace'): |
| 10 |
''' |
| 11 |
This is the function which executes the low level shell command, which |
| 12 |
may be commands to create/remove directories for temporary files, or to |
| 13 |
@@ -492,7 +491,7 @@ class ActionBase(with_metaclass(ABCMeta, |
| 14 |
''' |
| 15 |
|
| 16 |
if executable is not None: |
| 17 |
- cmd = executable + ' -c ' + cmd |
| 18 |
+ cmd = executable + ' -c ' + pipes.quote(cmd) |
| 19 |
|
| 20 |
display.debug("_low_level_execute_command(): starting") |
| 21 |
if not cmd: |