Blame SOURCES/0003-Fix-logging-issue-related-to-dtype.patch

4d5874
From 0f485a0921a39c08e7259f9b38f0b10e425384a5 Mon Sep 17 00:00:00 2001
4d5874
From: root <root@ipa.example.test>
4d5874
Date: Mon, 5 Dec 2022 16:17:17 -0500
4d5874
Subject: [PATCH] Fix logging issue related to dtype
4d5874
4d5874
It is an integer in earlier versions of python3-dns and a class
4d5874
in later versions. Log the integer value.
4d5874
4d5874
Related: #2099484
4d5874
---
4d5874
 src/ipahealthcheck/ipa/idns.py | 2 +-
4d5874
 1 file changed, 1 insertion(+), 1 deletion(-)
4d5874
4d5874
diff --git a/ipa/idns.py b/ipa/idns.py
4d5874
index e294db2..1adb69d 100644
4d5874
--- a/src/ipahealthcheck/ipa/idns.py
4d5874
+++ b/src/ipahealthcheck/ipa/idns.py
4d5874
@@ -176,7 +176,7 @@ class IPADNSSystemRecordsCheck(IPAPlugin):
4d5874
         qname = "ipa-ca." + api.env.domain + "."
4d5874
         ipa_ca_records = []
4d5874
         for dtype in (rdatatype.A, rdatatype.AAAA):
4d5874
-            logger.debug("Search DNS for %s records of %s", dtype.name, qname)
4d5874
+            logger.debug("Search DNS for %s records of %s", dtype, qname)
4d5874
             try:
4d5874
                 answers = resolve(qname, dtype)
4d5874
             except DNSException as e:
4d5874
-- 
4d5874
2.31.1
4d5874