Comment 2 for bug 1755788

Revision history for this message
Dmitry Galkin (galkindmitrii) wrote :

Looked more into that.

Turns out that the Dnspython (as packed with eventlet) in https://github.com/rthalley/dnspython/blob/master/dns/rdtypes/txtbase.py#L56-L73 generates the list 'strings' that has no spaces.

So, if we do like:

[root@openstack ~]# python
Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dns.rdataset
>>>
>>> txt_record = "some valid record with spaces"
>>> print(dns.rdataset.from_text(dns.rdataclass.IN, dns.rdatatype.TXT, 0, txt_record))
0 IN TXT "some" "valid" "record" "with" "spaces"

Result will be missing all the spaces.