provider/aws: Insert log when removing volume attachment if not found

This commit is contained in:
clint shryock 2016-10-03 09:57:42 -05:00
parent f1c5f848e9
commit 2c934f9686
1 changed files with 1 additions and 0 deletions

View File

@ -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("")
}