bundles/users: only remove ssh key if we're managing configs

This commit is contained in:
Franzi 2020-08-20 15:34:05 +02:00
parent 7432c52a36
commit 55d6257243
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -54,7 +54,7 @@ for username, attrs in node.metadata['users'].items():
'mode': '0600',
}
else:
elif attrs.get('deploy_configs', True):
files[home + '/.ssh/authorized_keys'] = {'delete': True}
if attrs.get('deploy_configs', True):