From c58584dcdc16929c2bb47393fa7e1a0913a6dfe5 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Mon, 14 Nov 2022 12:15:33 -0500 Subject: [PATCH] Merge pull request #430 from jaywcarman/remove_powervs_ssh_key_newlines Remove newlines from public SSH keys (cherry picked from commit e96bc8ee500f144a683e9d8b8e2cb4a92168999e) --- .../ibm_cloud/inventory/parser/power_virtual_servers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/ibm_cloud/inventory/parser/power_virtual_servers.rb b/app/models/manageiq/providers/ibm_cloud/inventory/parser/power_virtual_servers.rb index 71c08bcd5..0a19a6c4a 100644 --- a/app/models/manageiq/providers/ibm_cloud/inventory/parser/power_virtual_servers.rb +++ b/app/models/manageiq/providers/ibm_cloud/inventory/parser/power_virtual_servers.rb @@ -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