From f6f9f2b78b264a19e223c8c9682d4328e7a71c1b Mon Sep 17 00:00:00 2001 From: Patrik Cyvoct Date: Tue, 14 Apr 2020 14:16:35 +0200 Subject: [PATCH] fix review Signed-off-by: Patrik Cyvoct --- scaleway/resource_lb_beta.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scaleway/resource_lb_beta.go b/scaleway/resource_lb_beta.go index ea27866667..05d6d1cbba 100644 --- a/scaleway/resource_lb_beta.go +++ b/scaleway/resource_lb_beta.go @@ -123,6 +123,10 @@ func resourceScalewayLbBetaRead(d *schema.ResourceData, m interface{}) error { return err } + if _, ok := d.GetOkExists("ip_id"); !ok { + _ = d.Set("release_ip_on_deletion", true) + } + _ = d.Set("name", res.Name) _ = d.Set("region", string(region)) _ = d.Set("organization_id", res.OrganizationID)