Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c1c20072 authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[bin/kareboot] default key should only be used for "deploy_env" reboot kind

parent a51bf389
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ class KarebootClient < ClientWorkflow
return false
end
unless options[:deploy_part]
error("A partition number must be specified must be with the recorded_env kind of reboot")
error("A partition label must be specified must be with the recorded_env kind of reboot")
return false
end
end
......@@ -171,7 +171,7 @@ class KarebootClient < ClientWorkflow
# Check if the environment contains local files
options[:key] = options[:default_config_options][:key] if options[:key].nil? && options[:default_config_options][:key]
options[:key] = options[:default_config_options][:key] if options[:key].nil? && options[:default_config_options][:key] && options[:operation] == :deploy_env
options.delete(:key) if options[:key] == 'none'
if options[:key]
params[:ssh_authorized_keys] = load_keyfile(options[:key])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment