Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nkvuong committed Oct 29, 2024
1 parent bcf2a97 commit 35b85eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions apps/resource_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion internal/providers/sdkv2/sdkv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 35b85eb

Please sign in to comment.