From 8fbf51be7a14b66dc6081d1a315cf339fe021c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sun, 4 Aug 2019 03:09:47 +0200 Subject: [PATCH] yield changed to print --- gitosis/principals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitosis/principals.py b/gitosis/principals.py index 248af7a..e4c9665 100644 --- a/gitosis/principals.py +++ b/gitosis/principals.py @@ -22,7 +22,7 @@ def serve_principal(cfg, sshUser, principals): +'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s') for p in util.getAllowedSSHPrincipals(config=cfg).split() : - yield TEMPLATE % dict(user=sshUser.partition('@')[0], principals=p) + print TEMPLATE % dict(user=sshUser.partition('@')[0], principals=p) class Main(app.App): def create_parser(self): @@ -44,5 +44,5 @@ class Main(app.App): if sshUser != "": log.info('Running serve_principal for user %s', sshUser) #log.debug('serve_principal: %s', serve_principal(cfg, sshUser, principals)) - print serve_principal(cfg, sshUser, principals) + serve_principal(cfg, sshUser, principals) log.info('Done.')