Skip to content

Commit

Permalink
Apply typo fixes from code review
Browse files Browse the repository at this point in the history
Co-authored-by: stephybun <steph@hashicorp.com>
  • Loading branch information
jackofallops and stephybun authored Nov 28, 2024
1 parent 98437fc commit 2c5e68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ func (c *Client) Execute(ctx context.Context, req *Request) (*Response, error) {
// Check for failed connections etc and decide if retries are appropriate
if r == nil {
if req.IsIdempotent() {
if !isResourceMangerHost(req) {
if !isResourceManagerHost(req) {
return extendedRetryPolicy(r, err)
}

Expand Down Expand Up @@ -849,7 +849,7 @@ func extendedRetryPolicy(resp *http.Response, err error) (bool, error) {

// exclude Resource Manager calls from the network failure retry avoidance to help users on unreliable networks
// This code path should be removed when the Data Plane separation work is completed and 5.0 ships.
func isResourceMangerHost(req *Request) bool {
func isResourceManagerHost(req *Request) bool {
knownResourceManagerHosts := []string{
"management.azure.com",
"management.chinacloudapi.cn",
Expand Down

0 comments on commit 2c5e68d

Please sign in to comment.