mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-29 23:49:09 +00:00
Because paramiko using a pty can't distinguish stderr and stdout, remove handling that
treated -D as a way to show stderr, and make sure modules don't include things on stderr. Update docs and test module script to come into line.
This commit is contained in:
parent
076f1bc169
commit
36e454c52f
10 changed files with 47 additions and 54 deletions
|
|
@ -63,7 +63,7 @@ cmd = subprocess.Popen("%s %s" % (modfile, argspath),
|
|||
|
||||
if err and err != '':
|
||||
print "***********************************"
|
||||
print "RECIEVED DATA ON STDOUT, WILL IGNORE THIS:"
|
||||
print "RECIEVED DATA ON STDERR, THIS WILL BREAK YOUR MODULE:"
|
||||
print err
|
||||
|
||||
try:
|
||||
|
|
@ -84,6 +84,9 @@ print "PARSED OUTPUT"
|
|||
|
||||
print utils.bigjson(results)
|
||||
|
||||
if err and err != '':
|
||||
sys.exit(1)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue