Skip to content

Commit 9e08d30

Browse files
committed
added comment
1 parent 6683d6b commit 9e08d30

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
@@ -122,6 +122,8 @@ func (r *ResourceCluster) DoDelete(ctx context.Context, id string) error {
122122
func (r *ResourceCluster) ClassifyChange(change structdiff.Change, remoteState *compute.ClusterDetails, _ bool) (deployplan.ActionType, error) {
123123
changedPath := change.Path.String()
124124
if changedPath == "data_security_mode" {
125+
// We do change skip here in the same way TF provider does suppress diff if the alias is used.
126+
// https://github.com/databricks/terraform-provider-databricks/blob/main/clusters/resource_cluster.go#L109-L117
125127
if change.Old == compute.DataSecurityModeDataSecurityModeStandard && change.New == compute.DataSecurityModeUserIsolation {
126128
return deployplan.ActionTypeSkip, nil
127129
}

0 commit comments

Comments
 (0)