mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Common module code upgrades
This commit is contained in:
parent
9006d4557d
commit
a94ec130d2
3 changed files with 42 additions and 24 deletions
|
@ -79,16 +79,11 @@ cmd = subprocess.Popen("%s %s" % (modfile, argspath),
|
|||
stderr=subprocess.PIPE)
|
||||
(out, err) = cmd.communicate()
|
||||
|
||||
if err and err != '':
|
||||
print "***********************************"
|
||||
print "RECIEVED DATA ON STDERR, THIS WILL CRASH YOUR MODULE"
|
||||
print err
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
print "***********************************"
|
||||
print "RAW OUTPUT"
|
||||
print out
|
||||
print err
|
||||
results = utils.parse_json(out)
|
||||
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue