provider/aws: Insert log when removing volume attachment if not found
This commit is contained in:
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…
Reference in New Issue