diff --git a/inventory_provider/db/opsdb.py b/inventory_provider/db/opsdb.py index 092d34861c48b8c9c0df79d1b4946fa2ef4ecf07..f70ab30731246b5b4ebd9bf592b2cc4bee759592 100644 --- a/inventory_provider/db/opsdb.py +++ b/inventory_provider/db/opsdb.py @@ -109,15 +109,15 @@ retrieve_services_query = """SELECT * ON pop_a.absid = cc.PTR_pop_a LEFT JOIN pop pop_b ON pop_b.absid = cc.PTR_pop_b - INNER JOIN equipment e_a + LEFT JOIN equipment e_a ON e_a.absid = cc.PTR_equip_a - LEFT JOIN equipment e_b + INNER JOIN equipment e_b ON e_b.absid = cc.PTR_equip_b LEFT JOIN events ON events.absid = cc.PTR_project - INNER JOIN equipment_card ec_a + LEFT JOIN equipment_card ec_a ON ec_a.absid = cc.PTR_card_a - LEFT JOIN equipment_card ec_b + INNER JOIN equipment_card ec_b ON ec_b.absid = cc.PTR_card_b LEFT JOIN organisation o ON o.absid = ec_a.manufacturer