Skip to content

Commit

Permalink
Merge pull request #114 from terraform-providers/b-org-env
Browse files Browse the repository at this point in the history
provider: Source SCALEWAY_ORGANIZATION variable correctly
  • Loading branch information
nicolai86 authored Mar 22, 2019
2 parents f740cbd + 105f729 commit 7fdc4e8
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 @@ -51,7 +51,7 @@ func Provider() terraform.ResourceProvider {
DefaultFunc: schema.SchemaDefaultFunc(func() (interface{}, error) {
for _, k := range []string{"SCALEWAY_ORGANIZATION"} {
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 7fdc4e8

Please sign in to comment.