From e130b2c2dca4aa404c4f62886dec114ceeaa669b Mon Sep 17 00:00:00 2001 From: Trevor Pounds Date: Fri, 12 Feb 2016 13:52:46 -0800 Subject: [PATCH] Fix `go vet` printf verb warnings. e.g. arg trail.LogFileValidationEnabled for printf verb %t of wrong type: *bool --- builtin/providers/aws/resource_aws_cloudtrail_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/resource_aws_cloudtrail_test.go b/builtin/providers/aws/resource_aws_cloudtrail_test.go index 722bcaab1..39f2f9a62 100644 --- a/builtin/providers/aws/resource_aws_cloudtrail_test.go +++ b/builtin/providers/aws/resource_aws_cloudtrail_test.go @@ -266,7 +266,7 @@ func testAccCheckCloudTrailLogValidationEnabled(n string, desired bool, trail *c if *trail.LogFileValidationEnabled != desired { return fmt.Errorf("Expected log validation status %t, given %t", desired, - trail.LogFileValidationEnabled) + *trail.LogFileValidationEnabled) } // local state comparison @@ -277,8 +277,7 @@ func testAccCheckCloudTrailLogValidationEnabled(n string, desired bool, trail *c } desiredInString := fmt.Sprintf("%t", desired) if enabled != desiredInString { - return fmt.Errorf("Expected log validation status %t, saved %t", desiredInString, - enabled) + return fmt.Errorf("Expected log validation status %s, saved %s", desiredInString, enabled) } return nil