Skip to content

Commit

Permalink
azurerm_spring_cloud_service - ignore default zero value for `read_…
Browse files Browse the repository at this point in the history
…timeout_seconds` (#18161)
  • Loading branch information
ms-henglu authored Aug 29, 2022
1 parent 3196505 commit ade96ed
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,11 @@ func expandSpringCloudNetwork(input []interface{}) *appplatform.NetworkProfile {
ServiceRuntimeSubnetID: utils.String(v["service_runtime_subnet_id"].(string)),
AppSubnetID: utils.String(v["app_subnet_id"].(string)),
ServiceCidr: utils.String(strings.Join(*cidrRanges, ",")),
IngressConfig: &appplatform.IngressConfig{
ReadTimeoutInSeconds: utils.Int32(int32(v["read_timeout_seconds"].(int))),
},
}
if readTimeoutInSeconds := v["read_timeout_seconds"].(int); readTimeoutInSeconds != 0 {
network.IngressConfig = &appplatform.IngressConfig{
ReadTimeoutInSeconds: utils.Int32(int32(readTimeoutInSeconds)),
}
}
if serviceRuntimeNetworkResourceGroup := v["service_runtime_network_resource_group"].(string); serviceRuntimeNetworkResourceGroup != "" {
network.ServiceRuntimeNetworkResourceGroup = utils.String(serviceRuntimeNetworkResourceGroup)
Expand Down

0 comments on commit ade96ed

Please sign in to comment.