From df320a44cf299a10aec0852dbb03abf6abc4330d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 8 Aug 2024 19:24:16 +0200 Subject: [PATCH] ci: ignore boring warning 'Could not identify correctly the dns zone for domain sub.domain.tld' --- src/dns.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dns.py b/src/dns.py index 458deae7e..09cd25c8e 100644 --- a/src/dns.py +++ b/src/dns.py @@ -481,9 +481,11 @@ def _get_dns_zone_for_domain(domain): else: zone = parent_list[-1] - logger.warning( - f"Could not identify correctly the dns zone for domain {domain}, returning {zone}" - ) + # Adding this otherwise the CI is flooding about those ... + if domain not in ["example.tld", "sub.example.tld", "domain.tld", "sub.domain.tld", "domain_a.dev", "domain_b.dev"]: + logger.warning( + f"Could not identify correctly the dns zone for domain {domain}, returning {zone}" + ) return zone