Skip to content

Commit

Permalink
Merge pull request #360 from hashicorp/f/sdk-lro-poller-completed
Browse files Browse the repository at this point in the history
sdk/resourcemanager: tracking a LRO status of `Completed` as `Succeeded`
  • Loading branch information
tombuildsstuff authored Mar 9, 2023
2 parents 0899e07 + e67bae0 commit c1de4f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/client/resourcemanager/poller_lro.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ func (p *longRunningOperationPoller) Poll(ctx context.Context) (result *pollers.
// whilst the standard set above should be sufficient, some APIs differ from the spec and should be documented below:
// Dashboard@2022-08-01 returns `Accepted` rather than `InProgress` during creation
"Accepted": pollers.PollingStatusInProgress,
// CostManagement@2021-10-01 returns `Completed` rather than `Succeeded`: https://github.com/Azure/azure-sdk-for-go/issues/20342
"Completed": pollers.PollingStatusSucceeded,
// SignalR@2022-02-01 returns `Running` rather than `InProgress` during creation
"Running": pollers.PollingStatusInProgress,
}
Expand Down

0 comments on commit c1de4f8

Please sign in to comment.