Skip to content

Commit

Permalink
Fix defaults for password and auth in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsbhat committed Feb 19, 2023
1 parent e60cdd0 commit da9ae94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ func Provider() *schema.Provider {
Required: true,
ForceNew: true,
Computed: false,
DefaultFunc: schema.EnvDefaultFunc("GOCD_USERNAME", "username"),
DefaultFunc: schema.EnvDefaultFunc("GOCD_USERNAME", nil),
Description: "username to be used while connecting with GoCD",
},
"password": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Computed: false,
DefaultFunc: schema.EnvDefaultFunc("GOCD_PASSWORD", "password"),
DefaultFunc: schema.EnvDefaultFunc("GOCD_PASSWORD", nil),
Description: "password to be used while connecting with GoCD",
},
"auth_token": {
Expand Down

0 comments on commit da9ae94

Please sign in to comment.