Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit c326d07

Browse files
committed
lbpool update hotfix, docs updated
1 parent 098330a commit c326d07

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

docs/data-sources/gcore_lbpool.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ output "view" {
6969
Read-Only:
7070

7171
- **delay** (Number)
72+
- **expected_codes** (String)
7273
- **http_method** (String)
7374
- **id** (String)
7475
- **max_retries** (Number)

docs/resources/gcore_lbpool.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Required:
8888

8989
Optional:
9090

91+
- **expected_codes** (String)
9192
- **http_method** (String)
9293
- **id** (String) The ID of this resource.
9394
- **max_retries_down** (Number)

examples/provider/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
gcore = {
55
source = "G-Core/gcorelabs"
6-
version = "0.1.9"
6+
version = "0.1.10"
77
}
88
}
99
}

gcore/resource_gcore_lbpool.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,15 @@ func resourceLBPoolUpdate(ctx context.Context, d *schema.ResourceData, m interfa
364364

365365
taskID := results.Tasks[0]
366366
_, err = tasks.WaitTaskAndReturnResult(client, taskID, true, LBPoolsCreateTimeout, func(task tasks.TaskID) (interface{}, error) {
367-
taskInfo, err := tasks.Get(client, string(task)).Extract()
367+
_, err := tasks.Get(client, string(task)).Extract()
368368
if err != nil {
369369
return nil, fmt.Errorf("cannot get task with ID: %s. Error: %w", task, err)
370370
}
371-
lbPoolID, err := lbpools.ExtractPoolIDFromTask(taskInfo)
372-
if err != nil {
373-
return nil, fmt.Errorf("cannot retrieve LBPool ID from task info: %w", err)
374-
}
375-
return lbPoolID, nil
371+
//lbPoolID, err := lbpools.ExtractPoolIDFromTask(taskInfo)
372+
//if err != nil {
373+
// return nil, fmt.Errorf("cannot retrieve LBPool ID from task info: %w", err)
374+
//}
375+
return nil, nil
376376
})
377377

378378
if err != nil {

0 commit comments

Comments
 (0)