diff --git a/lib/fog/clodo/requests/compute/delete_server.rb b/lib/fog/clodo/requests/compute/delete_server.rb index 1add2f19e..0101ea6d6 100644 --- a/lib/fog/clodo/requests/compute/delete_server.rb +++ b/lib/fog/clodo/requests/compute/delete_server.rb @@ -22,7 +22,8 @@ module Fog def delete_server(server_id) response = Excon::Response.new - if server = list_servers_detail.body['servers'].detect {|_| _['id'] == server_id} + + if server = list_servers_detail.body['servers'].detect {|_| _['id'].to_i == server_id } if server['status'] == 'is_install' response.status = 405 raise(Excon::Errors.status_error({:expects => 204}, response))