diff --git a/inventory_provider/routes/jobs.py b/inventory_provider/routes/jobs.py index 1782218ab49e0092a0a4165965e404c71bd2b599..4674a99e4145961c79d253010c8ca401f0ad9eba 100644 --- a/inventory_provider/routes/jobs.py +++ b/inventory_provider/routes/jobs.py @@ -39,9 +39,3 @@ def 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)) diff --git a/inventory_provider/routes/testing.py b/inventory_provider/routes/testing.py index 66d38912f6fe1af273fc003a9d8ea83dafac0024..49b3ccb9e7b186513e9ba8505b6a4943e3251841 100644 --- a/inventory_provider/routes/testing.py +++ b/inventory_provider/routes/testing.py @@ -157,6 +157,14 @@ def snmp_ids(hostname): 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 # @routes.route("/interfaces/status/<hostname>/<path:interface>", # methods=['GET', 'POST'])