yield changed to print
This commit is contained in:
parent
2c7b1c6e22
commit
8fbf51be7a
1 changed files with 2 additions and 2 deletions
|
@ -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.')
|
||||
|
|
Loading…
Reference in a new issue