mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
(cherry picked from commit a6bbf31d0b907181e6afa9e198ca42c07d681055)
This commit is contained in:
parent
22d6747229
commit
b55b970da8
@ -481,9 +481,12 @@ module CommandParser
|
||||
begin
|
||||
rc = comm[:proc].call
|
||||
|
||||
if rc.instance_of?(Array)
|
||||
if rc.instance_of?(Array) && rc[0] != 0
|
||||
STDERR.puts rc[1]
|
||||
exit(rc[0])
|
||||
elsif rc.instance_of?(Array)
|
||||
puts rc[1]
|
||||
exit rc.first
|
||||
exit(rc[0])
|
||||
else
|
||||
exit(@exit_code || rc)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user