From 4791ab76cece893b1b88a6dc3a6aa84c586b12de Mon Sep 17 00:00:00 2001 From: Gareth Oakley Date: Fri, 7 Dec 2018 12:08:56 +0000 Subject: [PATCH] r/aws_securityhub: Fix linter errors --- aws/resource_aws_securityhub_product_subscription.go | 4 ++-- aws/resource_aws_securityhub_standard.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aws/resource_aws_securityhub_product_subscription.go b/aws/resource_aws_securityhub_product_subscription.go index 6a49b39fe73..542d142303e 100644 --- a/aws/resource_aws_securityhub_product_subscription.go +++ b/aws/resource_aws_securityhub_product_subscription.go @@ -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)), @@ -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()), diff --git a/aws/resource_aws_securityhub_standard.go b/aws/resource_aws_securityhub_standard.go index 20d8c07e572..1c1f6a45646 100644 --- a/aws/resource_aws_securityhub_standard.go +++ b/aws/resource_aws_securityhub_standard.go @@ -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{ @@ -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())},