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