Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaevans committed May 9, 2023
1 parent 7b25881 commit e5428d3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/beaker/hypervisor/google_compute_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,9 @@ def list_firewalls
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_firewall(name, network, allow: [], deny: [], source_ranges: [], source_tags: [], target_ranges: [], target_tags: [])
# require 'pry-byebug'
# binding.pry
allowed = []
allow.each do |port|
parts = port.split('/', 2)
# allowed << ::Google::Apis::ComputeV1::Firewall::Allowed.new(ip_protocol: parts[1], ports: [parts[0]])
if parts[1] == 'tcp' || parts[1] == 'udp' || parts[1] == 'sctp' then
allowed << ::Google::Apis::ComputeV1::Firewall::Allowed.new(ip_protocol: parts[1], ports: [parts[0]])
else
Expand Down

0 comments on commit e5428d3

Please sign in to comment.