fix(src/risotto/rougail/annotator.py): do not raise if suppliers not exists

This commit is contained in:
egarette@silique.fr 2023-07-31 17:05:55 +02:00
parent 96132ae60a
commit 6d8219b22c

View file

@ -79,6 +79,8 @@ class Annotator(Walk):
continue
if provider_prefix != 'Host':
provider_zone = self.objectspace.rougailconfig['risotto_globals'][provider_dns]['global:provider_zone']
if provider_prefix not in self.suppliers:
continue
for supplier_dns, suppliers_suffix in self.suppliers[provider_prefix].items():
if provider_dns == supplier_dns:
continue