Skip to content

Commit

Permalink
Merge pull request #1 from Rwwn/provider_update
Browse files Browse the repository at this point in the history
Minor provider field changes
  • Loading branch information
nikhilsbhat committed Feb 19, 2023
2 parents a6a7da8 + 4480510 commit e07b43a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions internal/provider/gocd_provider_schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,21 +227,21 @@ func propertiesSchemaResource() *schema.Schema {
Type: schema.TypeString,
Optional: true,
Computed: false,
ForceNew: true,
ForceNew: false,
Description: "The value of the property",
},
"encrypted_value": {
Type: schema.TypeString,
Optional: true,
Computed: false,
ForceNew: true,
ForceNew: false,
Description: "The encrypted value of the property",
},
"is_secure": {
Type: schema.TypeBool,
Optional: true,
Computed: false,
ForceNew: true,
ForceNew: false,
Description: "Specify whether the given property is secure or not. If true and encrypted_value is not specified, " +
"GoCD will store the value in encrypted format.",
},
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ func Provider() *schema.Provider {
},
"ca_file": {
Type: schema.TypeString,
Required: true,
Optional: true,
ForceNew: true,
Computed: false,
DefaultFunc: schema.EnvDefaultFunc("GOCD_CAFILE_CONTENT", "some_ca_context"),
DefaultFunc: schema.EnvDefaultFunc("GOCD_CAFILE_CONTENT", nil),
Description: "CA file contents, to be used while connecting to GoCD server when CA based auth is enabled",
},
"username": {
Expand Down Expand Up @@ -72,7 +72,7 @@ func Provider() *schema.Provider {
Required: true,
ForceNew: true,
Computed: false,
DefaultFunc: schema.EnvDefaultFunc("GOCD_PASSWORD", "password"),
DefaultFunc: schema.EnvDefaultFunc("GOCD_LOGLEVEL", "info"),
Description: "loglevel to be set for the api calls made to GoCD",
},
},
Expand Down

0 comments on commit e07b43a

Please sign in to comment.