|
|
|
@ -266,7 +266,7 @@ func testAccCheckCloudTrailLogValidationEnabled(n string, desired bool, trail *c
|
|
|
|
|
|
|
|
|
|
|
|
if *trail.LogFileValidationEnabled != desired {
|
|
|
|
if *trail.LogFileValidationEnabled != desired {
|
|
|
|
return fmt.Errorf("Expected log validation status %t, given %t", desired,
|
|
|
|
return fmt.Errorf("Expected log validation status %t, given %t", desired,
|
|
|
|
trail.LogFileValidationEnabled)
|
|
|
|
*trail.LogFileValidationEnabled)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// local state comparison
|
|
|
|
// local state comparison
|
|
|
|
@ -277,8 +277,7 @@ func testAccCheckCloudTrailLogValidationEnabled(n string, desired bool, trail *c
|
|
|
|
}
|
|
|
|
}
|
|
|
|
desiredInString := fmt.Sprintf("%t", desired)
|
|
|
|
desiredInString := fmt.Sprintf("%t", desired)
|
|
|
|
if enabled != desiredInString {
|
|
|
|
if enabled != desiredInString {
|
|
|
|
return fmt.Errorf("Expected log validation status %t, saved %t", desiredInString,
|
|
|
|
return fmt.Errorf("Expected log validation status %s, saved %s", desiredInString, enabled)
|
|
|
|
enabled)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
|