mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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" {
|
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("")
|
d.SetId("")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user