mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
If the inventory file is EXECUTABLE, treat it as a file returning JSON, if called directly, return the host
and groups list. If called with an argument of a host name, return the key=value data for that particular host.
This commit is contained in:
@@ -200,8 +200,6 @@ if __name__ == '__main__':
|
||||
# Generic handler for ansible specific errors
|
||||
print "ERROR: %s" % str(e)
|
||||
sys.exit(1)
|
||||
except Exception as e2:
|
||||
print e2.__class__
|
||||
else:
|
||||
cli.output(runner, results, options, args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user