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