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:
Paul Hinze 2016-02-24 09:48:32 -06:00
parent 79281c2502
commit cb8f0f04b5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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