From 2c934f9686db6030f02165694fe9c02381190d4a Mon Sep 17 00:00:00 2001 From: clint shryock Date: Mon, 3 Oct 2016 09:57:42 -0500 Subject: [PATCH] provider/aws: Insert log when removing volume attachment if not found --- builtin/providers/aws/resource_aws_volume_attachment.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_volume_attachment.go b/builtin/providers/aws/resource_aws_volume_attachment.go index eb7aeddc8e..c586e0d2fe 100644 --- a/builtin/providers/aws/resource_aws_volume_attachment.go +++ b/builtin/providers/aws/resource_aws_volume_attachment.go @@ -146,6 +146,7 @@ func resourceAwsVolumeAttachmentRead(d *schema.ResourceData, meta interface{}) e } if len(vols.Volumes) == 0 || *vols.Volumes[0].State == "available" { + log.Printf("[DEBUG] Volume Attachment (%s) not found, removing from state", d.Id()) d.SetId("") }