mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
M #: Return non-zero after fail + success cleanup (#684)
This commit is contained in:
parent
c946f8a81e
commit
0becb9035e
@ -123,6 +123,9 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
if OpenNebula.is_error?(rc)
|
||||
STDERR.puts rc.message
|
||||
exit(-1)
|
||||
elsif rc < 0
|
||||
puts "ID: #{rc}"
|
||||
rc
|
||||
else
|
||||
puts "ID: #{rc}"
|
||||
0
|
||||
|
Loading…
Reference in New Issue
Block a user