python/samba/netcmd: Protect variable that can be None
authorNoel Power <noel.power@suse.com>
Thu, 17 May 2018 14:25:29 +0000 (15:25 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 23:12:24 +0000 (01:12 +0200)
commitc46fd168fc1c0021e97f849088ac634c1b077f27
treea61d141acfd3ffb06708bd77f72eeb8a11ad1646
parent352eee57ae0b3cd48ea8bab33d483812d57b8efd
python/samba/netcmd: Protect variable that can be None

In py3 None variable cannot be compared with '>' '<' etc operators

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/domain.py