provider/aws: Log removal of INACTIVE ECS service

This commit is contained in:
Radek Simko 2015-11-11 23:53:59 +00:00
parent 9683896480
commit bcd63f62a3
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,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)
d.SetId("")
return nil
}