1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Feature #788: Make 'oneuser passwd' second parameter optional, so --key can be used

This commit is contained in:
Carlos Martín 2011-09-02 16:20:14 +02:00
parent 6fd97be302
commit 2709d144a8

View File

@ -211,7 +211,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
Changes the given User's password
EOT
command :passwd, passwd_desc, :userid, :password,
command :passwd, passwd_desc, :userid, [:password, nil],
:options=>create_options do
if args[1]
pass = args[1]