From 6c2c4ecd6dcb8f4ba1e408344e8d4a7368d30920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sat, 3 Aug 2019 15:24:37 +0200 Subject: [PATCH] list as input for loop --- gitosis/principals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitosis/principals.py b/gitosis/principals.py index 4efdf65..32e5476 100644 --- a/gitosis/principals.py +++ b/gitosis/principals.py @@ -21,7 +21,7 @@ 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 p in util.getAllowedSSHPrincipals(config=cfg): + for p in [ util.getAllowedSSHPrincipals(config=cfg) ] : print TEMPLATE % dict(user=sshUser, principals=p) return TEMPLATE % dict(user=sshUser, principals=p)