Skip to content

Commit

Permalink
Fix regression for adding extra ports to EC2 security group
Browse files Browse the repository at this point in the history
Extra ports where not added to the security group due to a regression
introduced in ac3b8b4

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
welteki authored and alexellis committed Sep 1, 2023
1 parent ae8496b commit 33dbe4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provision/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ func (p *EC2Provisioner) createEC2SecurityGroup(vpcID string, controlPort int, o
if len(extraPorts) > 0 {
// disable high port range if extra ports are specified
highPortRange = []int{}

ports = append(ports, extraPorts...)
}

groupName := "inlets-" + uuid.New().String()
Expand Down

0 comments on commit 33dbe4d

Please sign in to comment.