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:
parent
6fd97be302
commit
2709d144a8
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user