|
|
@ -481,8 +481,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|
|
|
display.debug("done with _execute_module (%s, %s)" % (module_name, module_args))
|
|
|
|
display.debug("done with _execute_module (%s, %s)" % (module_name, module_args))
|
|
|
|
return data
|
|
|
|
return data
|
|
|
|
|
|
|
|
|
|
|
|
def _low_level_execute_command(self, cmd, sudoable=True, in_data=None,
|
|
|
|
def _low_level_execute_command(self, cmd, sudoable=True, in_data=None, executable=C.DEFAULT_EXECUTABLE, encoding_errors='replace'):
|
|
|
|
executable=None, encoding_errors='replace'):
|
|
|
|
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
This is the function which executes the low level shell command, which
|
|
|
|
This is the function which executes the low level shell command, which
|
|
|
|
may be commands to create/remove directories for temporary files, or to
|
|
|
|
may be commands to create/remove directories for temporary files, or to
|
|
|
@ -498,7 +497,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
if executable is not None:
|
|
|
|
if executable is not None:
|
|
|
|
cmd = executable + ' -c ' + cmd
|
|
|
|
cmd = executable + ' -c ' + pipes.quote(cmd)
|
|
|
|
|
|
|
|
|
|
|
|
display.debug("_low_level_execute_command(): starting")
|
|
|
|
display.debug("_low_level_execute_command(): starting")
|
|
|
|
if not cmd:
|
|
|
|
if not cmd:
|
|
|
|