Run autopep8 on all Python scripts

This commit is contained in:
Anthony Wang 2022-06-25 19:23:12 -05:00
parent d619b166be
commit 6504f796fa
Signed by: a
GPG Key ID: BC96B00AEC5F2D76
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
# A wrapper script over ldapdelete
from sys import argv
from subprocess import run
from sys import argv
def deluser(username):

View File

@ -3,16 +3,16 @@
# A wrapper script over ldapvi
# Requires http://www.lichteblau.com/ldapvi/
from sys import argv
from subprocess import run
from ldappass import ldappass
from sys import argv
def moduser(username):
"""Modify an existing user"""
if username == 'Manager':
run(['ldapvi', '-w', open('/etc/ldappass', 'r').read(), '--user', 'cn=Manager,dc=exozy,dc=me'])
run(['ldapvi', '-w', open('/etc/ldappass', 'r').read(),
'--user', 'cn=Manager,dc=exozy,dc=me'])
else:
run(['ldapvi', '--user', 'uid=' + username + ',ou=People,dc=exozy,dc=me'])