Fixed bug. (#2087)

This commit is contained in:
Alejandro Huertas Herrero authored and Ruben S. Montero committed 2018-05-11 15:24:49 +02:00
1 parent 4e2e81d4cc
commit 00b3c96d68
2 files changed
+6 -2

No files matched your search

+5 -1
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
+1 -1
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]