NewListPager always returns 0 results for TaskRunsClient #23897
Labels
Container Registry
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Bug Report
I never get any results from NewListPager when trying to list task runs via
TaskRunsClient
. I've tried using versions 1.0.0-1.3.0-beta.2 and it doesn't seem to make a difference. The example doesn't seem to work either (after replacing"<subscription-id>"
,"myResourceGroup"
, and"myRegistry"
). Here's a minimal example that shows the problem (alternatively you could replace the values and run the link above).This yields
even though this registry definitely has task runs in it's history. This is confirmed by using the
azure-cli
:az acr task list-runs -r <registry> --subscription <subscription-id>
If there were an error I'd expect to hit one of the error conditions.We can tell that it's at least connecting to the registry because changing the the
registry
name to a name that doesn't exist yields an error.module path:
sdk/resourcemanager/containerregistry/armcontainerregistry
go version:
go version go1.22.7 linux/amd64
The text was updated successfully, but these errors were encountered: