diff options
author | Christian Ratzenhofer <christian.ratzenhofer@cdnm.at> | 2018-03-16 07:39:55 +0000 |
---|---|---|
committer | Christian Ratzenhofer <christian.ratzenhofer@cdnm.at> | 2019-04-30 13:18:07 +0200 |
commit | a9e6eb77f053798596cdce189dd7ad181c014f44 (patch) | |
tree | f4503cddeaa9b22dd0a63362b5bed6b196b090ae /lib/gitlab_keys.rb | |
parent | 344cc6b443e08ec5648fcf8a3035e46bb404fd6a (diff) | |
download | gitlab-shell-a9e6eb77f053798596cdce189dd7ad181c014f44.tar.gz |
Actually print matched keys in list_keys
Diffstat (limited to 'lib/gitlab_keys.rb')
-rw-r--r-- | lib/gitlab_keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb index 0600a18..85ca797 100644 --- a/lib/gitlab_keys.rb +++ b/lib/gitlab_keys.rb @@ -99,7 +99,7 @@ class GitlabKeys # rubocop:disable Metrics/ClassLength matches = /^command=\".+?\s+(.+?)\".+?(?:ssh|ecdsa)-.*?\s(.+)\s*.*\n*$/.match(line) keys << "#{matches[1]} #{matches[2]}\n" unless matches.nil? end - keys + puts keys end def list_key_ids |