From da9ae94e3e062e0c484428a15436c259f9c7a00f Mon Sep 17 00:00:00 2001 From: nikhilsbhat Date: Sun, 19 Feb 2023 14:02:18 +0530 Subject: [PATCH] Fix defaults for password and auth in provider --- internal/provider/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 2b391de..c443a36 100755 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -46,7 +46,7 @@ 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": { @@ -54,7 +54,7 @@ func Provider() *schema.Provider { 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": {