Skip to content

Commit 5fb6180

Browse files
authored
Fix(lb-ip): set the good id on waiting process (#985)
1 parent a9fc5a9 commit 5fb6180

11 files changed

+2868
-2868
lines changed

scaleway/resource_lb_ip.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func resourceScalewayLbIPDelete(ctx context.Context, d *schema.ResourceData, met
248248
// check lb state
249249
if ip != nil && ip.LBID != nil {
250250
_, err = lbAPI.WaitForLbInstances(&lb.ZonedAPIWaitForLBInstancesRequest{
251-
LBID: ID,
251+
LBID: *ip.LBID,
252252
Zone: zone,
253253
Timeout: scw.TimeDurationPtr(LbWaitForTimeout),
254254
RetryInterval: scw.TimeDurationPtr(DefaultWaitLBRetryInterval),
@@ -274,7 +274,7 @@ func resourceScalewayLbIPDelete(ctx context.Context, d *schema.ResourceData, met
274274
// check lb state
275275
if ip != nil && ip.LBID != nil {
276276
_, err = lbAPI.WaitForLbInstances(&lb.ZonedAPIWaitForLBInstancesRequest{
277-
LBID: ID,
277+
LBID: *ip.LBID,
278278
Zone: zone,
279279
Timeout: scw.TimeDurationPtr(LbWaitForTimeout),
280280
RetryInterval: scw.TimeDurationPtr(DefaultWaitLBRetryInterval),

scaleway/testdata/data-source-lb-basic.cassette.yaml

+175-175
Large diffs are not rendered by default.

scaleway/testdata/data-source-lbip-basic.cassette.yaml

+96-96
Large diffs are not rendered by default.

scaleway/testdata/lb-backend-basic.cassette.yaml

+263-263
Large diffs are not rendered by default.

scaleway/testdata/lb-backend-health-check.cassette.yaml

+298-298
Large diffs are not rendered by default.

scaleway/testdata/lb-certificate-basic.cassette.yaml

+363-363
Large diffs are not rendered by default.

scaleway/testdata/lb-frontend-basic.cassette.yaml

+280-280
Large diffs are not rendered by default.

scaleway/testdata/lb-route-basic.cassette.yaml

+188-188
Large diffs are not rendered by default.

scaleway/testdata/lbacl-basic.cassette.yaml

+381-381
Large diffs are not rendered by default.

scaleway/testdata/lbip-basic.cassette.yaml

+111-111
Large diffs are not rendered by default.

scaleway/testdata/lblb-with-ip.cassette.yaml

+711-711
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)