Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
#31: Consider also keys with -----BEGIN RSA PRIVATE KEY header
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Nov 11, 2020
1 parent d6bd427 commit 6d27ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rkd_harbor/tasks/deployment/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d27ece

Please sign in to comment.