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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 175 additions & 175 deletions
Large diffs are not rendered by default.

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

Lines changed: 96 additions & 96 deletions
Large diffs are not rendered by default.

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

Lines changed: 263 additions & 263 deletions
Large diffs are not rendered by default.

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

Lines changed: 298 additions & 298 deletions
Large diffs are not rendered by default.

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

Lines changed: 363 additions & 363 deletions
Large diffs are not rendered by default.

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

Lines changed: 280 additions & 280 deletions
Large diffs are not rendered by default.

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

Lines changed: 188 additions & 188 deletions
Large diffs are not rendered by default.

scaleway/testdata/lbacl-basic.cassette.yaml

Lines changed: 381 additions & 381 deletions
Large diffs are not rendered by default.

scaleway/testdata/lbip-basic.cassette.yaml

Lines changed: 111 additions & 111 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)