Skip to content

Commit

Permalink
Merge pull request #430 from jaywcarman/remove_powervs_ssh_key_newlines
Browse files Browse the repository at this point in the history
Remove newlines from public SSH keys

(cherry picked from commit e96bc8e)
  • Loading branch information
agrare authored and Fryguy committed Nov 18, 2022
1 parent 5f83b29 commit c58584d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def sshkeys
persister.auth_key_pairs.build(
:name => tkey.name,
:public_key => tkey.ssh_key,
:fingerprint => SSHKey.sha1_fingerprint(tkey.ssh_key)
:fingerprint => SSHKey.sha1_fingerprint(tkey.ssh_key.split("\n").first)
)
end
end
Expand Down

0 comments on commit c58584d

Please sign in to comment.