From 35b85eb205e4f45c6f6a5cbf631691e42f16e562 Mon Sep 17 00:00:00 2001 From: Vuong Date: Tue, 29 Oct 2024 17:58:55 +0800 Subject: [PATCH] fix --- apps/resource_app.go | 3 --- internal/providers/sdkv2/sdkv2.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/resource_app.go b/apps/resource_app.go index 2c6828c9b..c306372ac 100644 --- a/apps/resource_app.go +++ b/apps/resource_app.go @@ -72,9 +72,6 @@ func (appStruct) CustomizeSchema(s *common.CustomizableSchema) *common.Customiza s.SchemaPath("name").SetRequired().SetForceNew().SetValidateFunc(validation.StringLenBetween(2, 30)) s.SchemaPath("mode").SetDefault("SNAPSHOT").SetValidateFunc(validation.StringInSlice([]string{"SNAPSHOT", "AUTO_SYNC"}, false)) - // Slice set - s.SchemaPath("resource").SetSliceSet() - // Computed fields for _, p := range []string{"active_deployment", "app_status", "compute_status", "create_time", "creator", "default_source_code_path", "pending_deployment", "service_principal_id", "service_principal_name", diff --git a/internal/providers/sdkv2/sdkv2.go b/internal/providers/sdkv2/sdkv2.go index d34757ddb..4d20a3e3a 100644 --- a/internal/providers/sdkv2/sdkv2.go +++ b/internal/providers/sdkv2/sdkv2.go @@ -130,7 +130,7 @@ func DatabricksProvider() *schema.Provider { ResourcesMap: map[string]*schema.Resource{ // must be in alphabetical order "databricks_access_control_rule_set": permissions.ResourceAccessControlRuleSet().ToResource(), "databricks_alert": sql.ResourceAlert().ToResource(), - "databricks_app": apps.ResourceApp().ToResource(), + "databricks_app": apps.ResourceApp().ToResource(), "databricks_artifact_allowlist": catalog.ResourceArtifactAllowlist().ToResource(), "databricks_aws_s3_mount": storage.ResourceAWSS3Mount().ToResource(), "databricks_azure_adls_gen1_mount": storage.ResourceAzureAdlsGen1Mount().ToResource(),