samba-tool: Correct handling of default value for use_ntvfs and use_xattrs
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jan 2017 02:34:09 +0000 (15:34 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 11 Feb 2017 06:49:16 +0000 (07:49 +0100)
commitca961e6a62987dc75931b7714d94fb998d586888
tree223564d8702b057c28902bbc36740bc558f2cb63
parent32116e015b14cfa697569fce01daf8cde3285970
samba-tool: Correct handling of default value for use_ntvfs and use_xattrs

Because these options are optional based on build-time rules, we need to encode the
default value from the additonal Option() blocks in the run() declaration.

Then we can correctly check only for the expected options, and not inconsistently for
None (causing classicupgrade to fail).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12543
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/netcmd/domain.py