diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index 56b10be12b6b0c25af2fd5a55f4f900ca663873a..cba344637e21ede7915d11343509fba9d31a6f0c 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -23,7 +23,7 @@ def poller_interface_oids(hostname): snmp_data_string = r.hget(hostname, 'snmp-interfaces') if not snmp_data_string: return Response( - response='no snmp available info for '%r % hostname, + response='no snmp available info for %r' % hostname, status=404, mimetype='text/html') diff --git a/test/per_router/test_poller_routes.py b/test/per_router/test_poller_routes.py index 2f2b87bc872c7cf00a56fcf9b3768476946d5bc0..e24c63e3e059a0e92aa3cae29067ae847a6f2beb 100644 --- a/test/per_router/test_poller_routes.py +++ b/test/per_router/test_poller_routes.py @@ -105,4 +105,3 @@ def test_router_interfaces(router, client_with_mocked_data): response = json.loads(rv.data.decode("utf-8")) jsonschema.validate(response, interfaces_list_schema) assert response # at least shouldn't be empty -