diff --git a/inventory_provider/routes/poller.py b/inventory_provider/routes/poller.py index 85351cff6d3dac3946b69855b8161996ecb9c7f6..3b7a8109f0debed19309f506f54626df5b8fb3a3 100644 --- a/inventory_provider/routes/poller.py +++ b/inventory_provider/routes/poller.py @@ -387,7 +387,7 @@ def _add_dashboards(interfaces): for ifc in interfaces: dashboards = _get_dashboards(ifc) - ifc['dashboards'] = sorted(list(d.name for d in dashboards)) + ifc['dashboards'] = sorted([d.name for d in dashboards]) yield ifc