Skip to content

Commit

Permalink
update per comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyeqf committed Nov 7, 2024
1 parent 3eeab5c commit 5096263
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ func resourceCdnFrontDoorCustomDomain() *pluginsdk.Resource {
}

if !features.FivePointOhBeta() {
tlsElem := resource.Schema["tls"].Elem.(*pluginsdk.Resource)
tlsElem.Schema["minimum_tls_version"] = &pluginsdk.Schema{
resource.Schema["tls"].Elem.(*pluginsdk.Resource).Schema["minimum_tls_version"] = &pluginsdk.Schema{
Type: pluginsdk.TypeString,
Optional: true,
Default: string(cdn.AfdMinimumTLSVersionTLS12),
Expand All @@ -129,7 +128,6 @@ func resourceCdnFrontDoorCustomDomain() *pluginsdk.Resource {
string(cdn.AfdMinimumTLSVersionTLS10),
}, false),
}
resource.Schema["tls"].Elem = tlsElem
}

return resource
Expand Down

0 comments on commit 5096263

Please sign in to comment.