Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Cyvoct <[email protected]>
  • Loading branch information
Sh4d1 committed Apr 14, 2020
1 parent fd1eaf7 commit f6f9f2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scaleway/resource_lb_beta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6f9f2b

Please sign in to comment.