1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #4786: oneuser login crashes in an ugly way if oned is not running

This commit is contained in:
Jaime Melis 2016-09-22 15:46:55 +02:00
parent cad79667a4
commit fa05b5dc34
2 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
rc = user.info
if OpenNebula.is_error?(rc)
puts rc.message
exit_with_code 1, rc.message
exit 1
end
user
end

View File

@ -40,7 +40,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
helper = OneUserHelper.new
before_proc do
helper.set_client(options) if ![:login, :key].include?(@comm_name)
helper.set_client(options) if ![:key].include?(@comm_name)
end
########################################################################