diff --git a/civo/volume/resource_volume_attachment.go b/civo/volume/resource_volume_attachment.go index c390bad5..5647c596 100644 --- a/civo/volume/resource_volume_attachment.go +++ b/civo/volume/resource_volume_attachment.go @@ -91,7 +91,7 @@ func resourceVolumeAttachmentCreate(ctx context.Context, d *schema.ResourceData, } log.Printf("[INFO] attaching the volume %s to instance %s", volumeID, instanceID) - _, err := apiClient.AttachVolume(volumeID, vuc) + _, err = apiClient.AttachVolume(volumeID, vuc) if err != nil { return diag.Errorf("[ERR] error attaching volume to instance %s", err) }