mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
feature #788: Changed description of oneuser key command. Do not hash x509 passwords
This commit is contained in:
parent
d145cd8303
commit
c8d45c9985
@ -37,7 +37,7 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
|
||||
return -1, "Can not read file: #{arg}"
|
||||
end
|
||||
else
|
||||
if options[:plain] || options[:ssh]
|
||||
if options[:plain] || options[:ssh] || options[:x509]
|
||||
password = arg.gsub(/\s/, '')
|
||||
else
|
||||
password = Digest::SHA1.hexdigest(arg)
|
||||
|
@ -177,7 +177,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
end
|
||||
|
||||
key_desc = <<-EOT.unindent
|
||||
Generates a public key from a private SSH key
|
||||
Shows a public key from a private SSH key. Use it as password for the SSH authentication mechanism.
|
||||
EOT
|
||||
|
||||
command :key, key_desc, :options=>[KEY] do
|
||||
|
Loading…
x
Reference in New Issue
Block a user