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

r/server: validate instance type availability #69

Merged
merged 1 commit into from
Jun 28, 2018
Merged

Conversation

nicolai86
Copy link
Contributor

@nicolai86 nicolai86 commented Jun 24, 2018

Before creating a new scaleway_server instance, the availability is detected using the compute api specific /products/servers/availability API.

Valid return values are (available, scarce, shortage), where shortage identifies out of stock.

In this case the provide will fail to create a new instance.

closes https://github.com/terraform-providers/terraform-provider-scaleway/issues/66 .

@nicolai86
Copy link
Contributor Author

tests are still green so pulling this change in.

@nicolai86 nicolai86 merged commit 628a7c6 into master Jun 28, 2018
@nicolai86 nicolai86 deleted the server-validation branch June 28, 2018 05:08
@remyleone remyleone added the instance Instance issues, bugs and feature requests label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement instance Instance issues, bugs and feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants