Remove unused variables
These variables weren't used, but the compiler misses them since they are captured in a closure.
This commit is contained in:
parent
3392b3a764
commit
142f689f96
|
@ -88,10 +88,9 @@ func resourceAwsAppautoscalingTargetCreate(d *schema.ResourceData, meta interfac
|
|||
targetOpts.ServiceNamespace = aws.String(d.Get("service_namespace").(string))
|
||||
|
||||
log.Printf("[DEBUG] Application autoscaling target create configuration %#v", targetOpts)
|
||||
var out *applicationautoscaling.RegisterScalableTargetOutput
|
||||
var err error
|
||||
err = resource.Retry(1*time.Minute, func() *resource.RetryError {
|
||||
out, err = conn.RegisterScalableTarget(&targetOpts)
|
||||
_, err = conn.RegisterScalableTarget(&targetOpts)
|
||||
|
||||
if err != nil {
|
||||
if awsErr, ok := err.(awserr.Error); ok && awsErr.Code() == "ValidationException" {
|
||||
|
|
|
@ -131,10 +131,9 @@ func resourceAwsOpsworksPermissionCreate(d *schema.ResourceData, meta interface{
|
|||
StackId: aws.String(d.Get("stack_id").(string)),
|
||||
}
|
||||
|
||||
var resp *opsworks.SetPermissionOutput
|
||||
err := resource.Retry(2*time.Minute, func() *resource.RetryError {
|
||||
var cerr error
|
||||
resp, cerr = client.SetPermission(req)
|
||||
_, cerr = client.SetPermission(req)
|
||||
if cerr != nil {
|
||||
log.Printf("[INFO] client error")
|
||||
if opserr, ok := cerr.(awserr.Error); ok {
|
||||
|
|
Loading…
Reference in New Issue