Skip to content
Snippets Groups Projects
Commit f7f387eb authored by Robert Latta's avatar Robert Latta
Browse files

Copied in the new redis hash names

parent 8cda9931
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,12 @@ from inventory_provider.storage import external_inventory
routes = Blueprint("inventory-opsdb-query-routes", __name__)
services_key = "inv_services"
interfaces_key = "inv_interfaces"
equipment_locations_key = "inv_eq_locations"
monitored_services_key = "monitored_services"
interfaces_key = "interface_services"
equipment_locations_key = "equipment_locations"
service_child_to_parents_key = "child_to_parent_circuit_relations"
service_parent_to_children_key = "parent_to_children_circuit_relations"
interface_status_key = "interface_statuses"
def require_accepts_json(f):
......@@ -93,7 +96,7 @@ def get_children(parent_id):
r = db.get_redis()
return Response(
r.hget(
external_inventory.service_parent_to_children_key,
service_parent_to_children_key,
parent_id),
mimetype="application/json")
......@@ -103,6 +106,6 @@ def get_parents(child_id):
r = db.get_redis()
return Response(
r.hget(
external_inventory.service_child_to_parents_key,
service_child_to_parents_key,
child_id),
mimetype="application/json")
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