1
0
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:
Jan Orel 2021-01-21 16:07:39 +01:00 committed by GitHub
parent c946f8a81e
commit 0becb9035e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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