custom reports returning array columns will be split over lines

This commit is contained in:
Oliver Gorwits
2023-12-05 21:32:41 +00:00
parent 2afa56dde9
commit 8397eabe50
2 changed files with 10 additions and 7 deletions

View File

@@ -265,7 +265,7 @@ system_reports:
- { count: 'Instances' }
- { seen: 'Where Seen' }
query: |
SELECT subnet, count(subnet), array_to_string(array_agg(host(alias)::text || ' on ' || host(ip)::text), ', ') AS seen
SELECT subnet, count(subnet), array_agg(host(alias)::text || ' on ' || host(ip)::text) AS seen
FROM device_ip
WHERE ip <> alias
AND (masklen(subnet) <> 32 AND masklen(subnet) <> 128)