Skip to content

Commit

Permalink
r/aws_securityhub: Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gazoakley committed Dec 7, 2018
1 parent 950a81d commit 4791ab7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aws/resource_aws_securityhub_product_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func resourceAwsSecurityHubProductSubscription() *schema.Resource {

func resourceAwsSecurityHubProductSubscriptionCreate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).securityhubconn
log.Print("[DEBUG] Enabling Security Hub product subscription for product %s", d.Get("product_arn"))
log.Printf("[DEBUG] Enabling Security Hub product subscription for product %s", d.Get("product_arn"))

resp, err := conn.EnableImportFindingsForProduct(&securityhub.EnableImportFindingsForProductInput{
ProductArn: aws.String(d.Get("product_arn").(string)),
Expand Down Expand Up @@ -70,7 +70,7 @@ func resourceAwsSecurityHubProductSubscriptionRead(d *schema.ResourceData, meta

func resourceAwsSecurityHubProductSubscriptionDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).securityhubconn
log.Print("[DEBUG] Disabling Security Hub product subscription %s", d.Id())
log.Printf("[DEBUG] Disabling Security Hub product subscription %s", d.Id())

_, err := conn.DisableImportFindingsForProduct(&securityhub.DisableImportFindingsForProductInput{
ProductSubscriptionArn: aws.String(d.Id()),
Expand Down
4 changes: 2 additions & 2 deletions aws/resource_aws_securityhub_standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func resourceAwsSecurityHubStandard() *schema.Resource {

func resourceAwsSecurityHubStandardCreate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).securityhubconn
log.Print("[DEBUG] Enabling Security Hub standard")
log.Printf("[DEBUG] Enabling Security Hub standard %s", d.Get("standards_arn"))

resp, err := conn.BatchEnableStandards(&securityhub.BatchEnableStandardsInput{
StandardsSubscriptionRequests: []*securityhub.StandardsSubscriptionRequest{
Expand Down Expand Up @@ -74,7 +74,7 @@ func resourceAwsSecurityHubStandardRead(d *schema.ResourceData, meta interface{}

func resourceAwsSecurityHubStandardDelete(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).securityhubconn
log.Print("[DEBUG] Disabling Security Hub standard %s", d.Id())
log.Printf("[DEBUG] Disabling Security Hub standard %s", d.Id())

_, err := conn.BatchDisableStandards(&securityhub.BatchDisableStandardsInput{
StandardsSubscriptionArns: []*string{aws.String(d.Id())},
Expand Down

0 comments on commit 4791ab7

Please sign in to comment.