git: 3b9c88fa9916 - releng/14.1 - fix (nuageinit): SSH keys are not handled in metadata but in userdata

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Thu, 23 May 2024 07:51:06 UTC
The branch releng/14.1 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=3b9c88fa991649be79bc84b131266b20d432b11a

commit 3b9c88fa991649be79bc84b131266b20d432b11a
Author:     Jeremy Collin <jeremy.collin@ovhcloud.com>
AuthorDate: 2024-05-21 14:52:23 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-05-23 07:50:01 +0000

    fix (nuageinit): SSH keys are not handled in metadata but in userdata
    
    MFC After: 1 day
    Approved by:    re (cperciva)
    
    (cherry picked from commit 48edad2edf6eb7a539e40dad8e1f87e3fa4973fd)
    (cherry picked from commit 5601feb7204b2ebb4c351b534105da8fc22213fd)
---
 libexec/nuageinit/nuageinit | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libexec/nuageinit/nuageinit b/libexec/nuageinit/nuageinit
index 08224061d1b1..df637bbc5064 100755
--- a/libexec/nuageinit/nuageinit
+++ b/libexec/nuageinit/nuageinit
@@ -164,13 +164,6 @@ if citype == "config-2" then
 		nuage.err("nuageinit: error parsing config-2: meta_data.json: " .. err)
 	end
 	local obj = parser:get_object()
-	local sshkeys = obj["public_keys"]
-	if sshkeys then
-		local homedir = nuage.adduser(default_user)
-		for _,v in pairs(sshkeys) do
-			nuage.addsshkey(root .. homedir, v)
-		end
-	end
 	nuage.sethostname(obj["hostname"])
 
 	-- network