Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: resolve issue with no-deadline context when listing RPs #24056

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

manicminer
Copy link
Contributor

@manicminer manicminer commented Nov 28, 2023

Fix a bug with listing RPs, and also tidy up the auth guides to remove German cloud references.

@manicminer manicminer force-pushed the auth/use-azure-cli-caching branch from a53659a to c97aefc Compare November 29, 2023 21:21
@github-actions github-actions bot added size/L and removed size/XL labels Nov 29, 2023
@manicminer manicminer force-pushed the auth/use-azure-cli-caching branch from c97aefc to da00dc3 Compare November 29, 2023 21:43
@manicminer manicminer changed the title auth: use azure-cli caching bugfix: resolve issue with no-deadline context when listing RPs Nov 29, 2023
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thought for the future but otherwise LGTM 👍

@@ -167,8 +168,11 @@ func Build(ctx context.Context, builder ClientBuilder) (*Client, error) {
if features.EnhancedValidationEnabled() {
subscriptionId := commonids.NewSubscriptionID(client.Account.SubscriptionId)

location.CacheSupportedLocations(ctx, *resourceManagerEndpoint)
if err := resourceproviders.CacheSupportedProviders(ctx, client.Resource.ResourceProvidersClient, subscriptionId); err != nil {
ctx2, cancel := context.WithTimeout(ctx, 10*time.Minute)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an aside: we should probably think about surfacing the available Locations on the Environment, so that we don't need to hit this endpoint twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, will have a think about it 👍

@manicminer manicminer merged commit 01fb62c into main Nov 30, 2023
25 checks passed
@manicminer manicminer deleted the auth/use-azure-cli-caching branch November 30, 2023 14:26
@github-actions github-actions bot added this to the v3.83.0 milestone Nov 30, 2023
Copy link

github-actions bot commented May 5, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants