fix (nuageinit): SSH keys are not handled in metadata but in userdata

MFC After: 1 day
Approved by:	re (cperciva)

(cherry picked from commit 48edad2edf)
(cherry picked from commit 5601feb720)
This commit is contained in:
Jeremy Collin 2024-05-21 16:52:23 +02:00 committed by Baptiste Daroussin
parent d31c10fca3
commit 3b9c88fa99

View File

@ -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