fix go vet warnings
``` go tool vet -all . builtin/providers/aws/resource_aws_elasticache_security_group.go:130: arg apierr.Code in printf call is a function value, not a function call builtin/providers/aws/resource_aws_elasticache_subnet_group.go:155: arg apierr.Code in printf call is a function value, not a function call ```
This commit is contained in:
parent
79281c2502
commit
cb8f0f04b5
|
@ -127,7 +127,7 @@ func resourceAwsElasticacheSecurityGroupDelete(d *schema.ResourceData, meta inte
|
|||
if !ok {
|
||||
return err
|
||||
}
|
||||
log.Printf("[DEBUG] APIError.Code: %v", apierr.Code)
|
||||
log.Printf("[DEBUG] APIError.Code: %v", apierr.Code())
|
||||
switch apierr.Code() {
|
||||
case "InvalidCacheSecurityGroupState":
|
||||
return err
|
||||
|
|
|
@ -152,7 +152,7 @@ func resourceAwsElasticacheSubnetGroupDelete(d *schema.ResourceData, meta interf
|
|||
if !ok {
|
||||
return err
|
||||
}
|
||||
log.Printf("[DEBUG] APIError.Code: %v", apierr.Code)
|
||||
log.Printf("[DEBUG] APIError.Code: %v", apierr.Code())
|
||||
switch apierr.Code() {
|
||||
case "DependencyViolation":
|
||||
// If it is a dependency violation, we want to retry
|
||||
|
|
Loading…
Reference in New Issue