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

MFC After: 1 day
This commit is contained in:
Jeremy Collin 2024-05-21 16:52:23 +02:00 committed by Baptiste Daroussin
parent 7975f57b7e
commit 48edad2edf

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