]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
message to_text() did not print a tsig when there was one
authorBob Halley <halley@dnspython.org>
Fri, 4 Jul 2025 19:35:30 +0000 (12:35 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 4 Jul 2025 19:35:38 +0000 (12:35 -0700)
dns/message.py

index bd58ae91127dda4c52642adbd5c2e404a28cfd3f..e29941d439548704f27db59c62f6511c2ae9ba7a 100644 (file)
@@ -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