Skip to content

Commit

Permalink
sdk/resourcemanager: tracking a LRO status of Completed as Succeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Mar 9, 2023
1 parent 265c6d4 commit e67bae0
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 e67bae0

Please sign in to comment.