From 55d6257243303fd99740124d9a1ae60920c83784 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 20 Aug 2020 15:34:05 +0200 Subject: [PATCH] bundles/users: only remove ssh key if we're managing configs --- bundles/users/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/users/items.py b/bundles/users/items.py index 6ca6393..b4aaf8d 100644 --- a/bundles/users/items.py +++ b/bundles/users/items.py @@ -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):