mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-25 10:02:16 -04:00
Fix go vet printf verb warnings.
e.g. arg trail.LogFileValidationEnabled for printf verb %t of wrong type: *bool
This commit is contained in:
committed by
James Nugent
parent
8e6d11fc5e
commit
e130b2c2dc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user