Commit 71bee14a authored by Philip ABBET's avatar Philip ABBET

Add support for a 'capabilities' field in the description returned by 'describe'

parent 88bb950e
......@@ -47,12 +47,14 @@ def main():
# use a configuration file if one exists
databases = None
capabilities = None
if os.path.exists('/etc/beat/environment.json'):
with open('/etc/beat/environment.json', 'r') as config_file:
config = simplejson.load(config_file)
name = config.get('name', name)
version = config.get('version', version)
databases = config.get('databases', None)
capabilities = config.get('capabilities', None)
# print the result
retval = collections.OrderedDict()
......@@ -63,4 +65,7 @@ def main():
if databases is not None:
retval['databases'] = databases
if capabilities is not None:
retval['capabilities'] = capabilities
print(simplejson.dumps(retval, indent=2))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment