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:
parent
cad79667a4
commit
fa05b5dc34
@ -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
|
||||
|
@ -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
|
||||
|
||||
########################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user