mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 15:21:25 -07:00
Tracebacks are now catchable with ignore_errors and have streamlined output. Also removes 'baby-JSON' for bash modules.
This commit is contained in:
parent
6c6a0f068e
commit
26cdddaebf
9 changed files with 32 additions and 47 deletions
|
@ -34,8 +34,11 @@ if options.host is not None:
|
|||
if options.extra:
|
||||
k,v = options.extra.split("=")
|
||||
variables[options.host][k] = v
|
||||
print json.dumps(variables[options.host])
|
||||
if options.host in variables:
|
||||
print json.dumps(variables[options.host])
|
||||
else:
|
||||
print "{}"
|
||||
sys.exit(0)
|
||||
|
||||
parser.print_help()
|
||||
sys.exit(1)
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue