Skip to content

Commit

Permalink
Fix previewFeaturesEnabled (from previewFeaturesEnableds)
Browse files Browse the repository at this point in the history
Fixes #800
  • Loading branch information
iwahbe committed Jan 10, 2025
1 parent aeb5e4e commit 8b3e3c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,18 @@ func Provider() info.Provider {
Version: version.Version,
DocRules: &info.DocRule{EditRules: docEditRules},
Config: map[string]*info.Schema{
"password": {
Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PASSWORD"}},
},
"private_key_passphrase": {
Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE"}},
},
"role": {
Default: &info.Default{EnvVars: []string{"SNOWFLAKE_ROLE"}},
},
"host": {
Default: &info.Default{EnvVars: []string{"SNOWFLAKE_HOST"}},
},
"port": {
Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PORT"}},
},
"protocol": {
Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PROTOCOL"}},
},
"warehouse": {
Default: &info.Default{EnvVars: []string{"SNOWFLAKE_WAREHOUSE"}},
},
// Fix pluralization.
//
// Previously was "previewFeaturesEnableds".
"preview_features_enabled": {Name: "previewFeaturesEnabled"},

"host": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_HOST"}}},
"password": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PASSWORD"}}},
"port": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PORT"}}},
"private_key_passphrase": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PRIVATE_KEY_PASSPHRASE"}}},
"protocol": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_PROTOCOL"}}},
"role": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_ROLE"}}},
"warehouse": {Default: &info.Default{EnvVars: []string{"SNOWFLAKE_WAREHOUSE"}}},
},
Resources: map[string]*info.Resource{
"snowflake_execute": {Fields: map[string]*info.Schema{
Expand Down
Empty file removed schema.json
Empty file.

0 comments on commit 8b3e3c1

Please sign in to comment.