Skip to content

Commit

Permalink
added comment about non functional WaitOperation api in waitForIPAMOp…
Browse files Browse the repository at this point in the history
…erationToBeDone api
  • Loading branch information
Mahesh Krishna Tambe committed May 16, 2024
1 parent f8d772d commit 5115085
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stackpath/structure_compute_network_allocation_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ func waitForIPAMOperationToBeDone(ctx context.Context, name string, meta interfa
return nil, fmt.Errorf("unable to extract operation name")
}

// (TODO)- WaitOperation is not working currently due to missing kong paths
// configuration for /ipam/v1/stacks/{stack_id}/operations/{operation_name}/wait api
// endpoint. replace below ticker based implementation to wait for operation
// completion with WaitOperation api call once it starts working.

timeout := time.After(OperationWaitTimeout)
ticker := time.NewTicker(time.Second)
defer ticker.Stop()
Expand Down

0 comments on commit 5115085

Please sign in to comment.