Skip to content

Commit

Permalink
passing around teh data.
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Jun 21, 2013
1 parent 7f31333 commit ea29a0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fog/google/requests/compute/delete_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ class Real
def delete_server(server_name, zone_name=nil)
if zone_name.nil?
list_zones.body['items'].each do |zone|
p zone
if get_server(server_name, zone['name']).status == 200
zone_name = zone['name']
end
end
else
if zone_name.is_a? Excon::Response
zone_name = zone_name.body["name"]
end
end

api_method = @compute.instances.delete
Expand Down

0 comments on commit ea29a0a

Please sign in to comment.