Fix vet issue
This commit is contained in:
parent
8230a5ded8
commit
64b5ff54eb
|
@ -164,11 +164,11 @@ func testAccCheckDynamoDbTableTimeToLiveWasUpdated(n string) resource.TestCheckF
|
||||||
log.Printf("[DEBUG] Checking on table %s", rs.Primary.ID)
|
log.Printf("[DEBUG] Checking on table %s", rs.Primary.ID)
|
||||||
|
|
||||||
if *ttlDescription.TimeToLiveStatus != dynamodb.TimeToLiveStatusEnabled {
|
if *ttlDescription.TimeToLiveStatus != dynamodb.TimeToLiveStatusEnabled {
|
||||||
return fmt.Errorf("TimeToLiveStatus %s, not ENABLED!", ttlDescription.TimeToLiveStatus)
|
return fmt.Errorf("TimeToLiveStatus %s, not ENABLED!", *ttlDescription.TimeToLiveStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
if *ttlDescription.AttributeName != "TestTTL" {
|
if *ttlDescription.AttributeName != "TestTTL" {
|
||||||
return fmt.Errorf("AttributeName was %s, not TestTTL!", ttlDescription.AttributeName)
|
return fmt.Errorf("AttributeName was %s, not TestTTL!", *ttlDescription.AttributeName)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue