diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index 0cc2b88a57..e83421fcbf 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -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 diff --git a/src/cli/oneuser b/src/cli/oneuser index 6b33b7d0f9..48cae098a6 100755 --- a/src/cli/oneuser +++ b/src/cli/oneuser @@ -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]