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

pull/9187/head
clint shryock 10 years ago
parent f1c5f848e9
commit 2c934f9686

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

Loading…
Cancel
Save