bundles/users: sort ssh keys
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2020-11-15 13:26:10 +01:00
parent 121dfb692c
commit c9e5ae87a1
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -49,7 +49,7 @@ for username, attrs in node.metadata['users'].items():
if 'ssh_pubkey' in attrs:
files[home + '/.ssh/authorized_keys'] = {
'content': "\n".join(attrs['ssh_pubkey']),
'content': '\n'.join(sorted(attrs['ssh_pubkey'])) + '\n',
'owner': username,
'mode': '0600',
}