mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-27 13:28:51 +07:00
Clarify that stderr WILL crash your module. Can't redirect because if we do we lose tracebacks
from modules remotely when they fail to parse, and this is VERY useful data.
This commit is contained in:
@@ -63,8 +63,9 @@ cmd = subprocess.Popen("%s %s" % (modfile, argspath),
|
||||
|
||||
if err and err != '':
|
||||
print "***********************************"
|
||||
print "RECIEVED DATA ON STDERR, THIS WILL BREAK YOUR MODULE:"
|
||||
print "RECIEVED DATA ON STDERR, THIS WILL CRASH YOUR MODULE"
|
||||
print err
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
print "***********************************"
|
||||
@@ -84,8 +85,6 @@ print "PARSED OUTPUT"
|
||||
|
||||
print utils.bigjson(results)
|
||||
|
||||
if err and err != '':
|
||||
sys.exit(1)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user