Skip to content

Commit 88bcc65

Browse files
authored
Added LocalSsdCount in GcpAttributes to ForceSendFields for databricks_cluster resource (#3631)
* Add LocalSsdCount in GcpAttributes to ForceSendFields * -
1 parent 453d941 commit 88bcc65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clusters/resource_cluster.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ func resourceClusterCreate(ctx context.Context, d *schema.ResourceData, c *commo
383383
if createClusterRequest.Autoscale == nil {
384384
createClusterRequest.ForceSendFields = []string{"NumWorkers"}
385385
}
386+
if createClusterRequest.GcpAttributes != nil {
387+
if _, ok := d.GetOkExists("gcp_attributes.0.local_ssd_count"); ok {
388+
createClusterRequest.GcpAttributes.ForceSendFields = []string{"LocalSsdCount"}
389+
}
390+
}
386391
clusterWaiter, err := clusters.Create(ctx, createClusterRequest)
387392
if err != nil {
388393
return err

0 commit comments

Comments
 (0)