From: Bob Halley Date: Fri, 4 Jul 2025 19:35:30 +0000 (-0700) Subject: message to_text() did not print a tsig when there was one X-Git-Tag: v2.8.0rc1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=99878bf292c86ca7d42b5341cb480f0833b83ba3;p=thirdparty%2Fdnspython.git message to_text() did not print a tsig when there was one --- diff --git a/dns/message.py b/dns/message.py index bd58ae91..e29941d4 100644 --- a/dns/message.py +++ b/dns/message.py @@ -239,6 +239,9 @@ class Message: for rrset in self.section_from_number(which): s.write(rrset.to_text(origin, relativize, **kw)) s.write("\n") + if self.tsig is not None: + s.write(self.tsig.to_text(origin, relativize, **kw)) + s.write("\n") # # We strip off the final \n so the caller can print the result without # doing weird things to get around eccentricities in Python print