Skip to content

Commit

Permalink
Fix aws cloud prepare failure
Browse files Browse the repository at this point in the history
Signed-off-by: Aswin Suryanarayanan <[email protected]>
  • Loading branch information
aswinsuryan authored and tpantelis committed Oct 7, 2024
1 parent df078de commit c7350bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ func (ac *awsCloud) setSuffixes(vpcID string) error {
return errors.New("Subnet IDs must be a valid non-empty slice of strings")
}
} else {
publicSubnets, err := ac.findPublicSubnets(vpcID, ac.filterByName("{infraID}*-public-{region}*"))
var err error

publicSubnets, err = ac.findPublicSubnets(vpcID, ac.filterByName("{infraID}*-public-{region}*"))
if err != nil {
return errors.Wrapf(err, "unable to find the public subnet")
}
Expand Down

0 comments on commit c7350bd

Please sign in to comment.