1
0
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:
Alejandro Huertas Herrero 2018-05-11 15:24:50 +02:00 committed by Ruben S. Montero
parent 4e2e81d4cc
commit 00b3c96d68
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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]