1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1383: Fix return code for ec2-delete-keypair

This commit is contained in:
Ruben S. Montero 2012-09-27 11:31:41 +02:00
parent a905f8872c
commit d5aa8b1fd9

View File

@ -65,9 +65,7 @@ EOT
exit_with_code -1, "#{cmd_name}: #{rc.message}"
else
if rc["return"] == "false"
STDERR.puts "Key #{args[0]} could not be removed"
else
STDERR.puts args[0]
exit_with_code -1, "Key #{args[0]} could not be removed"
end
exit_with_code 0