diff --git a/inventory_provider/db/ims_data.py b/inventory_provider/db/ims_data.py index 19ec47d110472b5593ce30d753705f3089bd29a6..308ba5a894a35b7e03ec2d539021bb0b91b8fd90 100644 --- a/inventory_provider/db/ims_data.py +++ b/inventory_provider/db/ims_data.py @@ -111,13 +111,13 @@ def get_customer_service_emails(ds: IMS): customer_contacts = defaultdict(set) for x in ds.get_filtered_entities( 'customerrelatedcontact', - "contact.plannedworkmail != ''", + "contact.plannedworkmail != '' | contact.mail != ''", CUSTOMER_RELATED_CONTACT_PROPERTIES['Contact'] ): customer_contacts[x['customerid']].add(x['contact']['mail']) for x in ds.get_filtered_entities( 'customerrelatedcontact', - "contact.troubleticketMail != ''", + "contact.troubleticketMail != '' | contact.mail != ''", CUSTOMER_RELATED_CONTACT_PROPERTIES['Contact'] ): customer_contacts[x['customerid']].add(x['contact']['mail'])