Skip to content

Commit

Permalink
Convert cache_location value to lower case before comparing for default
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed Oct 24, 2023
1 parent 82c28d2 commit e503d8c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"

"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"strings"
)

func RedisCacheLocation(input interface{}, key string) (warnings []string, errors []error) {
Expand All @@ -16,7 +17,7 @@ func RedisCacheLocation(input interface{}, key string) (warnings []string, error
return
}

if v == "default" {
if strings.ToLower(v) == "default" {
return warnings, errors
}

Expand Down

0 comments on commit e503d8c

Please sign in to comment.