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

flake 8; function name change

parent add1c23c
Branches
Tags
No related merge requests found
...@@ -14,7 +14,7 @@ These endpoints are intended for use by Dashboard V3. ...@@ -14,7 +14,7 @@ These endpoints are intended for use by Dashboard V3.
/classifier/juniper-link-info /classifier/juniper-link-info
----------------------------- -----------------------------
.. autofunction:: inventory_provider.routes.classifier.get_juniper_link_info .. autofunction:: inventory_provider.routes.classifier.handle_link_info_request
/classifier/infinera-fiberlink-info /classifier/infinera-fiberlink-info
...@@ -250,7 +250,7 @@ def _link_interface_info(r, hostname, interface): ...@@ -250,7 +250,7 @@ def _link_interface_info(r, hostname, interface):
Generates the 'interface' field for Generates the 'interface' field for
the juniper-link-info response payload. the juniper-link-info response payload.
only called from get_juniper_link_info only called from handle_link_info_request
:param r: redis connection :param r: redis connection
:param hostname: router hostname :param hostname: router hostname
...@@ -380,7 +380,7 @@ def handle_epipe_sap_info_request(source_equipment: str, service_id: str, vpn_id ...@@ -380,7 +380,7 @@ def handle_epipe_sap_info_request(source_equipment: str, service_id: str, vpn_id
cache_key = \ cache_key = \
f'classifier-cache:epipe_sap:{source_equipment}:{service_id}:{vpn_id}' f'classifier-cache:epipe_sap:{source_equipment}:{service_id}:{vpn_id}'
print(f'cache_key: {cache_key}') print(f'cache_key: {cache_key}')
result = _ignore_cache_or_retrieve(request, cache_key, r) result = _ignore_cache_or_retrieve(request, cache_key, r)
...@@ -400,7 +400,7 @@ def handle_epipe_sap_info_request(source_equipment: str, service_id: str, vpn_id ...@@ -400,7 +400,7 @@ def handle_epipe_sap_info_request(source_equipment: str, service_id: str, vpn_id
result = json.dumps(result) result = json.dumps(result)
# cache this data for the next call # cache this data for the next call
r.set(cache_key, result.encode('utf-8')) r.set(cache_key, result.encode('utf-8'))
return Response(result, mimetype="application/json") return Response(result, mimetype="application/json")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment