azure-sdk-for-go icon indicating copy to clipboard operation
azure-sdk-for-go copied to clipboard

armadvisor GetGenerateStatus hides relevant HTTP status information

Open joshk0 opened this issue 5 months ago • 3 comments

Bug Report

Package: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor SDK version: 1.2.0 Go version: go version go1.21.3 darwin/amd64

  • What happened? GetGenerateStatus is a call that tells you whether a recommendation generation operation has completed or not. The HTTP status code is Accepted if the operation is still ongoing and NoContent (204) if the operation has concluded. Otherwise a standard HTTP error. However, the response struct is empty, and will be the same whether 204 or Accepted was returned.
  • What did you expect or want to happen? The distinction should be made available via the repsonse struct or an additional return value.
  • How can we reproduce it? First, call GenerateRecommendations to get an operation ID (via *resp.Location), then pass it into GetGenerateStatus.
  • Anything we should know about your environment. Nothing special

joshk0 avatar Jan 29 '24 15:01 joshk0