Skip to content

Commit

Permalink
Merge pull request #113 from Sh4d1/fix-org
Browse files Browse the repository at this point in the history
Return the env org value instead of the key
  • Loading branch information
nicolai86 authored Mar 15, 2019
2 parents ce9db44 + ec8cb06 commit d523c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scaleway/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Provider() terraform.ResourceProvider {
DefaultFunc: schema.SchemaDefaultFunc(func() (interface{}, error) {
for _, k := range []string{"SCALEWAY_TOKEN", "SCALEWAY_ACCESS_KEY"} {
if os.Getenv(k) != "" {
return k, nil
return os.Getenv(k), nil
}
}
if path, err := homedir.Expand("~/.scwrc"); err == nil {
Expand Down

0 comments on commit d523c55

Please sign in to comment.