Apply black formatting.

Apply isort.
This commit is contained in:
Dannon Baker
2022-02-03 07:42:20 -05:00
parent ff2f3600f4
commit 623a5e165a
1589 changed files with 91081 additions and 66217 deletions
+5 -5
View File
@@ -11,7 +11,7 @@ TIMEOUT = 5
try:
import pam
except ImportError:
log.debug('PAM auth helper: Could not import pam module')
log.debug("PAM auth helper: Could not import pam module")
sys.exit(1)
@@ -32,10 +32,10 @@ signal.alarm(0)
p_auth = pam.pam()
authenticated = p_auth.authenticate(pam_username, pam_password, service=pam_service)
if authenticated:
log.debug(f'PAM auth helper: authentication successful for {pam_username}')
sys.stdout.write('True\n')
log.debug(f"PAM auth helper: authentication successful for {pam_username}")
sys.stdout.write("True\n")
sys.exit(0)
else:
log.debug(f'PAM auth helper: authentication failed for {pam_username}')
sys.stdout.write('False\n')
log.debug(f"PAM auth helper: authentication failed for {pam_username}")
sys.stdout.write("False\n")
sys.exit(1)