M #: Return non-zero after fail + success cleanup (#684)

This commit is contained in:
Jan Orel authored and GitHub committed 2021-01-21 16:07:39 +01:00
1 parent c946f8a81e
commit 0becb9035e
1 file changed
+3
+3
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