From a7553501b0bcee21b7dd27b174dcc8a1a170d71b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 29 Nov 2023 00:26:19 +0100 Subject: [PATCH] ci: warnings about 'not identify correctly the dns zone for domain' driving me crazy --- src/dns.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dns.py b/src/dns.py index f0438eb5c..d165761ba 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"]: + logger.warning( + f"Could not identify correctly the dns zone for domain {domain}, returning {zone}" + ) return zone