loop fixed
This commit is contained in:
parent
3d479977f0
commit
de05ba9144
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ def serve_principal(sshUser, principals):
|
||||||
+'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s')
|
+'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s')
|
||||||
|
|
||||||
if '@' in sshUser:
|
if '@' in sshUser:
|
||||||
for user in [ sshUser, sshUser.split('@')[0] ]
|
for user in [ sshUser, sshUser.split('@')[0] ]:
|
||||||
print TEMPLATE % dict(user=user, principals=principals)
|
print TEMPLATE % dict(user=user, principals=principals)
|
||||||
else:
|
else:
|
||||||
print TEMPLATE % dict(user=sshUser, principals=principals)
|
print TEMPLATE % dict(user=sshUser, principals=principals)
|
||||||
|
|
Loading…
Reference in a new issue