Should use "is" for checking booleans rather than "==" in Python, however these can also be simplified.
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
eadb = True
if use_xattrs == "yes":
eadb = False
- elif use_xattrs == "auto" and use_ntvfs == False:
+ elif use_xattrs == "auto" and not use_ntvfs:
eadb = False
- elif use_ntvfs == False:
+ elif not use_ntvfs:
raise CommandError("--use-xattrs=no requires --use-ntvfs (not supported for production use). "
"Please re-run with --use-xattrs omitted.")
elif use_xattrs == "auto" and not s3conf.get("posix:eadb"):