Skip to content

Commit cd789b3

Browse files
authored
Merge pull request #3795 from cnmcavoy/cnmcavoy/e2e-skip-delete-role-if-missing
Skip deleting 'control-plane.cluster-api-provider-aws.sigs.k8s.io' if it does not exist in the e2e setup
2 parents 82f2c7f + f19c224 commit cd789b3

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)