Skip to content

spaces: Validate input for region.#618

Merged
andrewsomething merged 2 commits intomainfrom
issues/617/spaces-region-validate
Apr 19, 2021
Merged

spaces: Validate input for region.#618
andrewsomething merged 2 commits intomainfrom
issues/617/spaces-region-validate

Conversation

@andrewsomething
Copy link
Copy Markdown
Member

Do some input validation on the region for Spaces operations as the no such host error message is not helpful. The new error would be:

Error: expected region to be one of [nyc3 sfo2 sfo3 ams3 sgp1 fra1], got ny2

  on main.tf line 21, in resource "digitalocean_spaces_bucket" "i-dont-exist":
  21:   region = "ny2"

Fixes: #617

Comment thread digitalocean/spaces_buckets.go
Copy link
Copy Markdown
Contributor

@scotchneat scotchneat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

@andrewsomething andrewsomething merged commit 605d31d into main Apr 19, 2021
@andrewsomething andrewsomething deleted the issues/617/spaces-region-validate branch April 19, 2021 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spaces creation fails: "no such host"

3 participants