Skip to content

Commit a1a6c48

Browse files
committed
added comment
1 parent 6294f0a commit a1a6c48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bundle/direct/dresources/cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ func (r *ResourceCluster) DoDelete(ctx context.Context, id string) error {
104104
func (r *ResourceCluster) ClassifyChange(change structdiff.Change, remoteState *compute.ClusterDetails, _ bool) (deployplan.ActionType, error) {
105105
changedPath := change.Path.String()
106106
if changedPath == "data_security_mode" {
107+
// We do change skip here in the same way TF provider does suppress diff if the alias is used.
108+
// https://github.com/databricks/terraform-provider-databricks/blob/main/clusters/resource_cluster.go#L109-L117
107109
if change.Old == compute.DataSecurityModeDataSecurityModeStandard && change.New == compute.DataSecurityModeUserIsolation {
108110
return deployplan.ActionTypeSkip, nil
109111
}

0 commit comments

Comments
 (0)