Skip to content

Commit 91e6a18

Browse files
Fixed gcp_availability field in databricks_insance_pool resource (#1610)
Co-authored-by: Alex Ott <[email protected]>
1 parent 5a6a224 commit 91e6a18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pools/resource_instance_pool.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type InstancePoolAzureAttributes struct {
2727
// InstancePoolGcpAttributes contains aws attributes for GCP Databricks deployments for instance pools
2828
// https://docs.gcp.databricks.com/dev-tools/api/latest/instance-pools.html#instancepoolgcpattributes
2929
type InstancePoolGcpAttributes struct {
30-
Availability clusters.Availability `json:"availability,omitempty" tf:"force_new"`
30+
Availability clusters.Availability `json:"gcp_availability,omitempty" tf:"force_new"`
3131
}
3232

3333
// InstancePoolDiskType contains disk type information for each of the different cloud service providers
@@ -190,7 +190,7 @@ func ResourceInstancePool() *schema.Resource {
190190
clusters.AzureAvailabilityOnDemand,
191191
}, false)
192192
}
193-
if v, err := common.SchemaPath(s, "gcp_attributes", "availability"); err == nil {
193+
if v, err := common.SchemaPath(s, "gcp_attributes", "gcp_availability"); err == nil {
194194
v.Default = clusters.GcpAvailabilityOnDemand
195195
v.ValidateFunc = validation.StringInSlice([]string{
196196
clusters.GcpAvailabilityOnDemand,

0 commit comments

Comments
 (0)