mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-03 01:17:41 +03:00
Fixed bug. (#2087)
This commit is contained in:
parent
4e2e81d4cc
commit
00b3c96d68
@ -757,8 +757,12 @@ EOT
|
||||
|
||||
rc = pool.info
|
||||
if OpenNebula.is_error?(rc)
|
||||
return -1, "OpenNebula #{self.class.rname} name not " <<
|
||||
if rc.message.empty?
|
||||
return -1, "OpenNebula #{self.class.rname} name not " <<
|
||||
"found, use the ID instead"
|
||||
else
|
||||
return -1,rc.message
|
||||
end
|
||||
end
|
||||
|
||||
return 0, pool
|
||||
|
@ -449,7 +449,7 @@ cmd = CommandParser::CmdParser.new(ARGV) do
|
||||
Changes the given User's password
|
||||
EOT
|
||||
|
||||
command :passwd, passwd_desc, [:username, :userid], [:password, nil],
|
||||
command :passwd, passwd_desc, [:userid], [:password, nil],
|
||||
:options=>auth_options do
|
||||
if args[1]
|
||||
pass = args[1]
|
||||
|
Loading…
Reference in New Issue
Block a user