# File lib/fog/rackspace/examples/compute_v2/delete_network.rb, line 17 def delete_network(network) attempt = 0 begin network.destroy rescue Fog::Compute::RackspaceV2::ServiceError => e if attempt == 3 puts "Unable to delete #{network.label}" return false end puts "Network #{network.label} Delete Fail Attempt #{attempt}- #{e.inspect}" attempt += 1 sleep 60 retry end return true end