feature #788: Changed description of oneuser key command. Do not hash x509 passwords

This commit is contained in:
Ruben S. Montero committed 2011-09-02 16:14:14 +02:00
1 parent d145cd8303
commit c8d45c9985
2 files changed
+2 -2

No files matched your search

+1 -1
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)
+1 -1
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