Skip to content

Commit

Permalink
error message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Nov 26, 2024
1 parent b24b39c commit c9fb1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/search/search_service_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ func resourceSearchService() *pluginsdk.Resource {
// NOTE: 'partition_count' values greater than 1 are not valid for 'free' SKU
partitionCount := int64(d.Get("partition_count").(int))
if (skuName == services.SkuNameFree) && partitionCount > 1 {
return fmt.Errorf("'partition_count' values greater than 1 cannot be set for the %q SKU, got %d)", string(skuName), partitionCount)
return fmt.Errorf("'partition_count' values greater than 1 cannot be set for the %q SKU, got %d", string(skuName), partitionCount)
}

// NOTE: 'partition_count' values greater than 3 are not valid for 'free' SKU
if (skuName == services.SkuNameBasic) && partitionCount > 3 {
return fmt.Errorf("'partition_count' values greater than 3 cannot be set for the %q SKU, got %d)", string(skuName), partitionCount)
return fmt.Errorf("'partition_count' values greater than 3 cannot be set for the %q SKU, got %d", string(skuName), partitionCount)
}

// NOTE: 'standard3' services with 'hostingMode' set to 'highDensity' the
Expand Down

0 comments on commit c9fb1d4

Please sign in to comment.