mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +00:00
fix (nuageinit): SSH keys are not handled in metadata but in userdata
MFC After: 1 day Approved by: re (cperciva) (cherry picked from commit48edad2edf
) (cherry picked from commit5601feb720
)
This commit is contained in:
parent
d31c10fca3
commit
3b9c88fa99
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user