-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_redshift_security_group: Fixes for tfproviderlint R002 (#…
…12029) Reference: #9952 Remove pointer value dereferences, which can cause potential panics and are extraneous as `Set()` automatically handles pointer types including when `nil`. Also adds missing EC2-Classic PreCheck to acceptance testing. Previously: ``` aws/resource_aws_redshift_security_group.go:151:16: R002: ResourceData.Set() pointer value dereference is extraneous aws/resource_aws_redshift_security_group.go:152:23: R002: ResourceData.Set() pointer value dereference is extraneous ``` Output from acceptance testing: ``` --- PASS: TestAccAWSRedshiftSecurityGroup_basic (11.89s) --- PASS: TestAccAWSRedshiftSecurityGroup_ingressCidr (12.79s) --- PASS: TestAccAWSRedshiftSecurityGroup_ingressSecurityGroup (13.09s) --- PASS: TestAccAWSRedshiftSecurityGroup_updateIngressCidr (25.35s) --- PASS: TestAccAWSRedshiftSecurityGroup_updateIngressSecurityGroup (28.94s) ```
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters