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:
Michael DeHaan
2012-03-30 19:06:14 -04:00
parent f200a467e7
commit 9f6d98844e
2 changed files with 60 additions and 19 deletions

View File

@@ -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)