strip BECOME-SUCCESS at lower level

Fixes #14395
This commit is contained in:
Matthew Stoltenberg 2016-02-09 09:18:09 -07:00 committed by James Cammarata
parent 162dd2594f
commit d36394d6a6
4 changed files with 3 additions and 11 deletions

View file

@ -37,9 +37,4 @@ class ActionModule(ActionBase):
executable = self._task.args.get('executable')
result.update(self._low_level_execute_command(self._task.args.get('_raw_params'), executable=executable))
# for some modules (script, raw), the sudo success key
# may leak into the stdout due to the way the sudo/su
# command is constructed, so we filter that out here
result['stdout'] = self._strip_success_message(result.get('stdout', ''))
return result