Commit b83251cf authored by Antoine Catton's avatar Antoine Catton

Add function to get information about agent instance on Wordpress.

parent 7e872d28
...@@ -366,6 +366,16 @@ def log_list(): ...@@ -366,6 +366,16 @@ def log_list():
return response return response
@app.route('/info/<name>')
def info(name):
if name == 'computerId':
return app.config['COMPUTER_ID']
elif name == 'partitionId':
return app.config['PARTITION_ID']
elif name == 'type':
return app.config['AGENT_TYPE']
else:
abort(httplib.NOT_FOUND)
def main(): def main():
global app global app
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment