mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-05 06:33:48 +09:00
M #: Return non-zero after fail + success cleanup (#684)
This commit is contained in:
1 parent
c946f8a81e
commit
0becb9035e
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user