From 6d27ece894fea360ead094c88da3e9900a93fb1a Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 11 Nov 2020 23:54:40 +0100 Subject: [PATCH] #31: Consider also keys with `-----BEGIN RSA PRIVATE KEY` header --- src/rkd_harbor/tasks/deployment/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rkd_harbor/tasks/deployment/base.py b/src/rkd_harbor/tasks/deployment/base.py index 9efac30..f72c447 100644 --- a/src/rkd_harbor/tasks/deployment/base.py +++ b/src/rkd_harbor/tasks/deployment/base.py @@ -86,7 +86,7 @@ def _process_config_private_keys(self): if 'private_key' not in self._config['nodes'][group_name][node_num]: continue - if '-----BEGIN OPENSSH PRIVATE KEY' not in self._config['nodes'][group_name][node_num]['private_key']: + if '-----BEGIN' not in self._config['nodes'][group_name][node_num]['private_key']: continue tmp_path = self.temp.assign_temporary_file(mode=0o700)