diff --git a/inventory_provider/db/opsdb.py b/inventory_provider/db/opsdb.py index 081e7a11f8765b969ae02d78335d243821989d12..e41748fd1c7472fdc2ac59914ad3c73d3108a55f 100644 --- a/inventory_provider/db/opsdb.py +++ b/inventory_provider/db/opsdb.py @@ -111,7 +111,7 @@ WHERE def get_circuits(connection): _sql = """ -SELECT equipment, other_end_equipment +SELECT * FROM (SELECT c.absid AS id, c.name, @@ -197,7 +197,6 @@ WHERE AND equipment != '' AND circuit_type IN ( 'path', 'service', 'l2circuit', 'link-aggr-group') - and (equipment like '%tal.ee%' or other_end_equipment like '%tal.ee%') ORDER BY name, FIELD(status,