File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1993,17 +1993,6 @@ func Provider() *schema.Provider {
1993
1993
}
1994
1994
1995
1995
func providerConfigure (d * schema.ResourceData ) (interface {}, error ) {
1996
- //var getProviderConfig = func(str string, key string) string {
1997
- // if str == "" {
1998
- // value, err := getConfigFromProfile(d, key)
1999
- // if err == nil && value != nil {
2000
- // str = value.(string)
2001
- // }
2002
- // }
2003
- //
2004
- // return str
2005
- //}
2006
-
2007
1996
var getProviderConfig = func (key string ) string {
2008
1997
var str string
2009
1998
value , err := getConfigFromProfile (d , key )
@@ -2037,6 +2026,8 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
2037
2026
2038
2027
if v , ok := d .GetOk ("security_token" ); ok {
2039
2028
securityToken = v .(string )
2029
+ } else {
2030
+ securityToken = getProviderConfig ("securityToken" )
2040
2031
}
2041
2032
2042
2033
if v , ok := d .GetOk ("region" ); ok {
You can’t perform that action at this time.
0 commit comments