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:
parent
a905f8872c
commit
d5aa8b1fd9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user