From 458e7e2a0948d7fbb0ceeb5bf4df75d62865a444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sat, 3 Aug 2019 15:22:32 +0200 Subject: [PATCH] variable renamed --- gitosis/principals.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gitosis/principals.py b/gitosis/principals.py index b69ec41..3da06e3 100644 --- a/gitosis/principals.py +++ b/gitosis/principals.py @@ -21,12 +21,10 @@ def serve_principal(cfg, sshUser, principals): TEMPLATE=('command="gitosis-serve %(user)s",no-port-forwarding,' +'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s') - for principal in util.getAllowedSSHPrincipals(config=cfg): - print TEMPLATE % dict(user=sshUser, - principals=principal) + for p in util.getAllowedSSHPrincipals(config=cfg): + print TEMPLATE % dict(user=sshUser, principals=p) - return TEMPLATE % dict(user=sshUser, - principals=util.principal) + return TEMPLATE % dict(user=sshUser, principals=util.p) class Main(app.App):