split output

This commit is contained in:
Jakobus Schürz 2019-08-03 15:26:17 +02:00
parent 6c2c4ecd6d
commit 26e6fc448c

View file

@ -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).split() :
print TEMPLATE % dict(user=sshUser, principals=p)
return TEMPLATE % dict(user=sshUser, principals=p)