Standardize removal of BECOME-SUCCESS method and use it for async too

Fixes #13965
Fixes #13971
This commit is contained in:
James Cammarata 2016-01-20 15:26:45 -05:00
parent 61009604e3
commit 54cde0d082
3 changed files with 14 additions and 4 deletions

View file

@ -75,4 +75,8 @@ class ActionModule(ActionBase):
result['changed'] = True
# be sure to strip out the BECOME-SUCCESS message, which may
# be there depending on the output of the module
result['stdout'] = self._strip_success_message(result.get('stdout', ''))
return result