1
0
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:
Ruben S. Montero 2011-09-02 16:14:14 +02:00
parent d145cd8303
commit c8d45c9985
2 changed files with 2 additions and 2 deletions

View File

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

View File

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