From cf65423281fa43d97b1d2561950fb8ec03bec4be Mon Sep 17 00:00:00 2001 From: Aswin Suryanarayanan Date: Fri, 4 Oct 2024 18:42:36 -0400 Subject: [PATCH] Fix aws cloud prepare failure Signed-off-by: Aswin Suryanarayanan --- pkg/aws/aws.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/aws/aws.go b/pkg/aws/aws.go index 881e4d44..9ff3cc43 100644 --- a/pkg/aws/aws.go +++ b/pkg/aws/aws.go @@ -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") }