yield changed to print

This commit is contained in:
Jakobus Schürz 2019-08-04 03:09:47 +02:00
parent 2c7b1c6e22
commit 8fbf51be7a

View file

@ -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.')