1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

Fix PEP8 warning E225 missing whitespace around operator

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Tim Beale
2018-07-27 13:26:23 +12:00
committed by Andrew Bartlett
parent 30e6e04c4c
commit 1a30a68b4a
6 changed files with 41 additions and 39 deletions

View File

@ -412,7 +412,8 @@ class cmd_domain_pwdsettings_pso_create(Command):
if num == ldb.ERR_INSUFFICIENT_ACCESS_RIGHTS: if num == ldb.ERR_INSUFFICIENT_ACCESS_RIGHTS:
raise CommandError("Administrator permissions are needed to create a PSO.") raise CommandError("Administrator permissions are needed to create a PSO.")
else: else:
raise CommandError("Failed to create PSO '%s': %s" %(pso_dn, msg)) raise CommandError("Failed to create PSO '%s': %s" % (pso_dn,
msg))
class cmd_domain_pwdsettings_pso_set(Command): class cmd_domain_pwdsettings_pso_set(Command):
"""Modifies a Password Settings Object (PSO).""" """Modifies a Password Settings Object (PSO)."""
@ -754,7 +755,8 @@ class cmd_domain_pwdsettings_pso_unapply(Command):
else: else:
raise CommandError("Failed to update PSO '%s': %s" % (psoname, raise CommandError("Failed to update PSO '%s': %s" % (psoname,
msg)) msg))
self.message("PSO '%s' no longer applies to '%s'" %(psoname, user_or_group)) self.message("PSO '%s' no longer applies to '%s'" % (psoname,
user_or_group))
class cmd_domain_passwordsettings_pso(SuperCommand): class cmd_domain_passwordsettings_pso(SuperCommand):
"""Manage fine-grained Password Settings Objects (PSOs).""" """Manage fine-grained Password Settings Objects (PSOs)."""

View File

@ -155,8 +155,8 @@ class PasswordSettings:
take effect (i.e. when no other Fine-Grained Password Policy applies) take effect (i.e. when no other Fine-Grained Password Policy applies)
""" """
pw_attrs = ["minPwdAge", "lockoutDuration", "lockOutObservationWindow", pw_attrs = ["minPwdAge", "lockoutDuration", "lockOutObservationWindow",
"lockoutThreshold", "maxPwdAge", "minPwdAge", "minPwdLength", "lockoutThreshold", "maxPwdAge", "minPwdAge",
"pwdHistoryLength", "pwdProperties"] "minPwdLength", "pwdHistoryLength", "pwdProperties"]
res = samdb.search(samdb.domain_dn(), scope=ldb.SCOPE_BASE, res = samdb.search(samdb.domain_dn(), scope=ldb.SCOPE_BASE,
attrs=pw_attrs) attrs=pw_attrs)