Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider: Source SCALEWAY_ORGANIZATION variable correctly #114

Merged
merged 1 commit into from
Mar 22, 2019

Conversation

radeksimko
Copy link
Contributor

@radeksimko radeksimko commented Mar 22, 2019

Similar to https://github.com/terraform-providers/terraform-provider-scaleway/pull/113 this fixes another bug introduced in https://github.com/terraform-providers/terraform-provider-scaleway/pull/111

Without this patch (and #113 ), the provider unfortunately can't authenticate against the API via ENV variables, which can also be seen by running any acceptance test:

=== RUN   TestAccScalewayBucket
--- FAIL: TestAccScalewayBucket (5.27s)
    testing.go:538: Step 0 error: Error applying: 1 error(s) occurred:
        
        * scaleway_bucket.base: 1 error(s) occurred:
        
        * scaleway_bucket.base: StatusCode: 400, Type: invalid_request_error, APIMessage:  [31mValidation Error [0m, Details: map[organization:[SCALEWAY_ORGANIZATION is not a valid UUID.]]
FAIL

@nicolai86
Copy link
Contributor

I immediatly switched to using the .scwrc file - should have been more careful.

Thanks so much!

@nicolai86 nicolai86 deleted the b-org-env branch March 22, 2019 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants