ci: warnings about 'not identify correctly the dns zone for domain' driving me crazy

This commit is contained in:
Alexandre Aubin 2023-11-29 00:26:19 +01:00
parent 60b7f63afa
commit a7553501b0

View file

@ -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