Skip to content

Commit 0b223d3

Browse files
committed
Bug Fix - support environment variable for TF_VAR_private_key and TF_VAR_private_key_password
1 parent 73b0548 commit 0b223d3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/provider/provider.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ func SchemaMap() map[string]*schema.Schema {
150150
globalvar.PrivateKeyAttrName: {
151151
Type: schema.TypeString,
152152
Optional: true,
153-
Default: "",
154153
Sensitive: true,
155154
Description: descriptions[globalvar.PrivateKeyAttrName],
156155
DefaultFunc: schema.MultiEnvDefaultFunc([]string{tfVarName(globalvar.PrivateKeyAttrName), ociVarName(globalvar.PrivateKeyAttrName)}, nil),
@@ -159,15 +158,14 @@ func SchemaMap() map[string]*schema.Schema {
159158
Type: schema.TypeString,
160159
Optional: true,
161160
Description: descriptions[globalvar.PrivateKeyPathAttrName],
162-
DefaultFunc: schema.MultiEnvDefaultFunc([]string{tfVarName(globalvar.PrivateKeyPathAttrName), ociVarName(globalvar.PrivateKeyPathAttrName)}, nil),
161+
DefaultFunc: schema.MultiEnvDefaultFunc([]string{tfVarName(globalvar.PrivateKeyPathAttrName), ociVarName(globalvar.PrivateKeyPathAttrName)}, ""),
163162
},
164163
globalvar.PrivateKeyPasswordAttrName: {
165164
Type: schema.TypeString,
166165
Optional: true,
167166
Sensitive: true,
168-
Default: "",
169167
Description: descriptions[globalvar.PrivateKeyPasswordAttrName],
170-
DefaultFunc: schema.MultiEnvDefaultFunc([]string{tfVarName(globalvar.PrivateKeyPasswordAttrName), ociVarName(globalvar.PrivateKeyPasswordAttrName)}, nil),
168+
DefaultFunc: schema.MultiEnvDefaultFunc([]string{tfVarName(globalvar.PrivateKeyPasswordAttrName), ociVarName(globalvar.PrivateKeyPasswordAttrName)}, ""),
171169
},
172170
globalvar.RegionAttrName: {
173171
Type: schema.TypeString,

0 commit comments

Comments
 (0)