1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-20 16:23:51 +03:00

PEP8: fix E714: test for object identity should be 'is not'

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Joe Guo
2018-07-30 15:45:18 +12:00
committed by Douglas Bagnall
parent e551f5f502
commit 5027405d0c
2 changed files with 4 additions and 4 deletions

View File

@@ -622,7 +622,7 @@ class cmd_domain_dcpromo(Command):
netbios_name = lp.get("netbios name")
if not role is None:
if role is not None:
role = role.upper()
if role == "DC":
@@ -697,7 +697,7 @@ class cmd_domain_join(Command):
netbios_name = lp.get("netbios name")
if not role is None:
if role is not None:
role = role.upper()
if role is None or role == "MEMBER":