diff --git a/inventory_provider/tasks/worker.py b/inventory_provider/tasks/worker.py index 350ff2fc34f5818d9589db92d7765a2946771fda..bd482a24620f3c036cf12242a97a3ddb51cf2217 100644 --- a/inventory_provider/tasks/worker.py +++ b/inventory_provider/tasks/worker.py @@ -627,7 +627,7 @@ def _reload_router_config_nokia( def snmp_refresh_peerings_nokia(hostname, communities, update_callback=lambda S: None): get_peerings_func = functools.partial( snmp.get_peer_state_info_nokia, - community=communities['inventory-provider'], + community=communities['dashboard'], ) snmp_refresh_peerings( get_peerings_func, hostname, 'nokia', update_callback=update_callback diff --git a/test/per_router/test_celery_worker.py b/test/per_router/test_celery_worker.py index 1fc7ec2caaa76b52624486dc1fc428ea4991d8fa..f60e875d1909f983440ac4b4b67d9500cf5ffc3c 100644 --- a/test/per_router/test_celery_worker.py +++ b/test/per_router/test_celery_worker.py @@ -81,7 +81,7 @@ def test_snmp_refresh_peerings_nokia(mocked_worker_module, nokia_router): for k in list(_ifc_keys()): del backend_db()[k] - communities = {'inventory-provider': 'fake-community'} + communities = {'dashboard': 'fake-community'} worker.snmp_refresh_peerings_nokia(nokia_router, communities) assert list(_ifc_keys())