Skip to content

Commit

Permalink
Merge pull request #3943 from hashicorp/b-aws-ecs-service-hotfix
Browse files Browse the repository at this point in the history
Fix issue with undefined var
  • Loading branch information
catsby committed Nov 16, 2015
2 parents 48e1e96 + 8085e55 commit 6cb5ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_ecs_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 6cb5ce2

Please sign in to comment.