samba-tool dns: use bytes for inet_ntop
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 23 May 2019 21:58:12 +0000 (09:58 +1200)
committerNoel Power <npower@samba.org>
Wed, 29 May 2019 11:29:17 +0000 (11:29 +0000)
commit0ae585db26727a944c957cb543bf72175dc55599
tree8f403c493f81970aaeaeeccaf849715c1ae938dd
parent32b282d55e8888aa7bbe02d95502669f1c714726
samba-tool dns: use bytes for inet_ntop

From Python's point of view, array.AddrArray is a list of byte-valued
integers. In Python 3 we can convert directly using the likes of

         bytes(array.AddrArray[i].MaxSa[8:24])

but in 4.10 we need to support both, so we use struct.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Wed May 29 11:29:17 UTC 2019 on sn-devel-184
python/samba/netcmd/dns.py
selftest/knownfail.d/sambatool-dns [deleted file]