From e67bae0d11f2415dc25e1cf49d4263044d3154ae Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 9 Mar 2023 13:16:32 +0100 Subject: [PATCH] sdk/resourcemanager: tracking a LRO status of `Completed` as `Succeeded` --- sdk/client/resourcemanager/poller_lro.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/client/resourcemanager/poller_lro.go b/sdk/client/resourcemanager/poller_lro.go index d36f19dc675..1531720150d 100644 --- a/sdk/client/resourcemanager/poller_lro.go +++ b/sdk/client/resourcemanager/poller_lro.go @@ -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, }