Skip to content
Snippets Groups Projects
Commit 7c9137dd authored by Erik Reid's avatar Erik Reid
Browse files

move latchdb to testing routes

parent 8a245c98
No related branches found
No related tags found
No related merge requests found
...@@ -39,9 +39,3 @@ def check_task_status(task_id): ...@@ -39,9 +39,3 @@ def check_task_status(task_id):
return jsonify(worker.check_task_status(task_id)) return jsonify(worker.check_task_status(task_id))
@routes.route("latchdb", methods=['GET', 'POST'])
def latch_db():
config = current_app.config["INVENTORY_PROVIDER_CONFIG"]
worker_common.latch_db(config)
r = worker_common.get_current_redis(config)
return jsonify(worker_common.get_latch(r))
...@@ -157,6 +157,14 @@ def snmp_ids(hostname): ...@@ -157,6 +157,14 @@ def snmp_ids(hostname):
return jsonify(ifc_data) return jsonify(ifc_data)
@routes.route("latchdb", methods=['GET', 'POST'])
def latch_db():
config = current_app.config["INVENTORY_PROVIDER_CONFIG"]
worker_common.latch_db(config)
r = worker_common.get_current_redis(config)
return jsonify(worker_common.get_latch(r))
# TODO: remove all alarmsdb i/o, and then remove the following # TODO: remove all alarmsdb i/o, and then remove the following
# @routes.route("/interfaces/status/<hostname>/<path:interface>", # @routes.route("/interfaces/status/<hostname>/<path:interface>",
# methods=['GET', 'POST']) # methods=['GET', 'POST'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment