From: Rob van der Linde Date: Tue, 31 Oct 2023 22:28:34 +0000 (+1300) Subject: netcmd: user: PEP8 E117: code is overindented X-Git-Tag: talloc-2.4.2~765 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cae5456a294f478c9cdfdbd48e8b6ba1ef664294;p=thirdparty%2Fsamba.git netcmd: user: PEP8 E117: code is overindented Signed-off-by: Rob van der Linde Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/user/add.py b/python/samba/netcmd/user/add.py index 16cd3feda2b..be4e3cc8110 100644 --- a/python/samba/netcmd/user/add.py +++ b/python/samba/netcmd/user/add.py @@ -163,17 +163,17 @@ Example5 shows how to add a new RFC2307/NIS domain enabled user account. If self.outf.write("Sorry, passwords do not match.\n") if rfc2307_from_nss: - pwent = pwd.getpwnam(username) - if uid is None: - uid = username - if uid_number is None: - uid_number = pwent[2] - if gid_number is None: - gid_number = pwent[3] - if gecos is None: - gecos = pwent[4] - if login_shell is None: - login_shell = pwent[6] + pwent = pwd.getpwnam(username) + if uid is None: + uid = username + if uid_number is None: + uid_number = pwent[2] + if gid_number is None: + gid_number = pwent[3] + if gecos is None: + gecos = pwent[4] + if login_shell is None: + login_shell = pwent[6] lp = sambaopts.get_loadparm() creds = credopts.get_credentials(lp) diff --git a/python/samba/netcmd/user/readpasswords/common.py b/python/samba/netcmd/user/readpasswords/common.py index ba81cc2d311..5b2770ac1d9 100644 --- a/python/samba/netcmd/user/readpasswords/common.py +++ b/python/samba/netcmd/user/readpasswords/common.py @@ -250,9 +250,9 @@ class GetPasswordCommand(Command): return None formats = [ - "GeneralizedTime", - "UnixTime", - "TimeSpec", + "GeneralizedTime", + "UnixTime", + "TimeSpec", ] def get_virtual_format_definition(opts):