-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
a53659a
to
c97aefc
Compare
c97aefc
to
da00dc3
Compare
There was a problem hiding this 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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
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. |
Fix a bug with listing RPs, and also tidy up the auth guides to remove German cloud references.