samba-tool drs showrepl: do not crash if no dnsHostName found
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 10 Oct 2018 22:59:52 +0000 (11:59 +1300)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Jan 2019 08:37:19 +0000 (09:37 +0100)
commit55e8277a9751bbf00bc6ad6e5f12d9163ddbdf36
tree1071257086e4806b84c27425df25ea773977ec87
parenta1486390762ed418cce0d54190ae3059228c18c7
samba-tool drs showrepl: do not crash if no dnsHostName found

This should not happen, but it does sometimes in an autobuild
environment. Rather than reporting this by crashing, we report it by
showing there is no DNS name.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13716

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Fri Oct 12 15:27:07 CEST 2018 on sn-devel-144

(cherry picked from commit 2fc855e7d2458249ca6fc8ffdf1d7633ab84cc55)
python/samba/netcmd/drs.py