From 8085e55eda5d5eb4c3d871569a946e6c472f0e80 Mon Sep 17 00:00:00 2001 From: clint shryock Date: Mon, 16 Nov 2015 16:29:52 -0600 Subject: [PATCH] fix issue with undefined var --- builtin/providers/aws/resource_aws_ecs_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_ecs_service.go b/builtin/providers/aws/resource_aws_ecs_service.go index d70f14423..2eddc7842 100644 --- a/builtin/providers/aws/resource_aws_ecs_service.go +++ b/builtin/providers/aws/resource_aws_ecs_service.go @@ -156,7 +156,7 @@ func resourceAwsEcsServiceRead(d *schema.ResourceData, meta interface{}) error { } if len(out.Services) < 1 { - log.Printf("[DEBUG] Removing ECS service %q because it's gone", service.ServiceArn) + log.Printf("[DEBUG] Removing ECS service %s (%s) because it's gone", d.Get("name").(string), d.Id()) d.SetId("") return nil } @@ -165,7 +165,7 @@ func resourceAwsEcsServiceRead(d *schema.ResourceData, meta interface{}) error { // Status==INACTIVE means deleted service if *service.Status == "INACTIVE" { - log.Printf("[DEBUG] Removing ECS service %q because it's INACTIVE", service.ServiceArn) + log.Printf("[DEBUG] Removing ECS service %s because it's INACTIVE", service.ServiceArn) d.SetId("") return nil }