mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Merge branch 'patch-1' of https://github.com/debfx/ansible into debfx-patch-1
This commit is contained in:
commit
9c1a89ff4e
1 changed files with 1 additions and 1 deletions
|
@ -49,6 +49,6 @@ class ActionModule(object):
|
||||||
# may leak into the stdout due to the way the sudo/su
|
# may leak into the stdout due to the way the sudo/su
|
||||||
# command is constructed, so we filter that out here
|
# command is constructed, so we filter that out here
|
||||||
if result.get('stdout','').strip().startswith('SUDO-SUCCESS-'):
|
if result.get('stdout','').strip().startswith('SUDO-SUCCESS-'):
|
||||||
result['stdout'] = re.sub(r'^(\r)?\nSUDO-SUCCESS.*(\r)?\n', '', result['stdout'])
|
result['stdout'] = re.sub(r'^((\r)?\n)?SUDO-SUCCESS.*(\r)?\n', '', result['stdout'])
|
||||||
|
|
||||||
return ReturnData(conn=conn, result=result)
|
return ReturnData(conn=conn, result=result)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue