Skip to content

Commit f19c224

Browse files
committed
Skip deleting 'control-plane.cluster-api-provider-aws.sigs.k8s.io' if it does not exist in the e2e setup
1 parent 1424bef commit f19c224

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/e2e/shared/aws.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,7 @@ func deleteResourcesInCloudFormation(prov client.ConfigProvider, t *cfn_bootstra
454454
tayp := val.AWSCloudFormationType()
455455
if tayp == configservice.ResourceTypeAwsIamRole {
456456
role := val.(*cfn_iam.Role)
457-
_, err := iamSvc.DeleteRole(&iam.DeleteRoleInput{RoleName: aws.String(role.RoleName)})
458-
Expect(err).NotTo(HaveOccurred())
457+
_, _ = iamSvc.DeleteRole(&iam.DeleteRoleInput{RoleName: aws.String(role.RoleName)})
459458
}
460459
if val.AWSCloudFormationType() == "AWS::IAM::InstanceProfile" {
461460
profile := val.(*cfn_iam.InstanceProfile)

0 commit comments

Comments
 (0)