From 6d8219b22c4de4e9b20f76039efc8492abbeb1ee Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 31 Jul 2023 17:05:55 +0200 Subject: [PATCH] fix(src/risotto/rougail/annotator.py): do not raise if suppliers not exists --- src/risotto/rougail/annotator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/risotto/rougail/annotator.py b/src/risotto/rougail/annotator.py index 6534f03..cfb18e7 100644 --- a/src/risotto/rougail/annotator.py +++ b/src/risotto/rougail/annotator.py @@ -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