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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user