lib/cucumber/chef/providers/aws.rb in cucumber-chef-2.1.0.rc.11 vs lib/cucumber/chef/providers/aws.rb in cucumber-chef-2.1.0.rc.12

- old
+ new

@@ -238,15 +238,13 @@ if (security_group = @connection.security_groups.get(security_group_name)) port_ranges = security_group.ip_permissions.collect{ |entry| entry["fromPort"]..entry["toPort"] } security_group.authorize_port_range(22..22) if port_ranges.none?{ |port_range| port_range === 22 } security_group.authorize_port_range(4000..4000) if port_ranges.none?{ |port_range| port_range === 4000 } security_group.authorize_port_range(4040..4040) if port_ranges.none?{ |port_range| port_range === 4040 } - security_group.authorize_port_range(8787..8787) if port_ranges.none?{ |port_range| port_range === 8787 } elsif (security_group = @connection.security_groups.new(:name => security_group_name, :description => "cucumber-chef test lab")).save security_group.authorize_port_range(22..22) security_group.authorize_port_range(4000..4000) security_group.authorize_port_range(4040..4040) - security_group.authorize_port_range(8787..8787) else raise AWSError, "Could not find an existing or create a new AWS security group." end end