python: Use generated WERROR definitions
authorBob Campbell <bobcampbell@catalyst.net.nz>
Sun, 12 Feb 2017 22:12:54 +0000 (11:12 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Feb 2017 08:46:23 +0000 (09:46 +0100)
commit2a5d9e61db6605ef5f55a9a1d972a2a078d5c899
tree18856dd0d04e146ae3860090426fe0a9c729dc8a
parentc6dcac954e783bb3f55a2d16eca2f43da42e1210
python: Use generated WERROR definitions

Previously we either defined WERRORs locally or compared them against
strings where we needed to use them.

Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/join.py
python/samba/netcmd/dns.py
python/samba/netcmd/domain.py
python/samba/remove_dc.py
python/samba/tests/dns.py