Merge pull request #7831 from hashicorp/jbardin/unused-vars

Remove unused variables
This commit is contained in:
James Bardin 2016-07-27 11:55:57 -04:00 committed by GitHub
commit 735e425daa
2 changed files with 2 additions and 4 deletions

View File

@ -88,10 +88,9 @@ func resourceAwsAppautoscalingTargetCreate(d *schema.ResourceData, meta interfac
targetOpts.ServiceNamespace = aws.String(d.Get("service_namespace").(string)) targetOpts.ServiceNamespace = aws.String(d.Get("service_namespace").(string))
log.Printf("[DEBUG] Application autoscaling target create configuration %#v", targetOpts) log.Printf("[DEBUG] Application autoscaling target create configuration %#v", targetOpts)
var out *applicationautoscaling.RegisterScalableTargetOutput
var err error var err error
err = resource.Retry(1*time.Minute, func() *resource.RetryError { err = resource.Retry(1*time.Minute, func() *resource.RetryError {
out, err = conn.RegisterScalableTarget(&targetOpts) _, err = conn.RegisterScalableTarget(&targetOpts)
if err != nil { if err != nil {
if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == "ValidationException" { if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == "ValidationException" {

View File

@ -131,10 +131,9 @@ func resourceAwsOpsworksPermissionCreate(d *schema.ResourceData, meta interface{
StackId: aws.String(d.Get("stack_id").(string)), StackId: aws.String(d.Get("stack_id").(string)),
} }
var resp *opsworks.SetPermissionOutput
err := resource.Retry(2*time.Minute, func() *resource.RetryError { err := resource.Retry(2*time.Minute, func() *resource.RetryError {
var cerr error var cerr error
resp, cerr = client.SetPermission(req) _, cerr = client.SetPermission(req)
if cerr != nil { if cerr != nil {
log.Printf("[INFO] client error") log.Printf("[INFO] client error")
if opserr, ok := cerr.(awserr.Error); ok { if opserr, ok := cerr.(awserr.Error); ok {