diff --git a/internal/provider/gocd_provider_schemas.go b/internal/provider/gocd_provider_schemas.go index e8aeaff..d0f81fe 100644 --- a/internal/provider/gocd_provider_schemas.go +++ b/internal/provider/gocd_provider_schemas.go @@ -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.", }, diff --git a/internal/provider/provider.go b/internal/provider/provider.go index c443a36..75602bb 100755 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -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": { @@ -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", }, },