Skip to content

projects: Environment is optional, don't set default.#788

Merged
andrewsomething merged 1 commit intomainfrom
asb/issues/787
Feb 11, 2022
Merged

projects: Environment is optional, don't set default.#788
andrewsomething merged 1 commit intomainfrom
asb/issues/787

Conversation

@andrewsomething
Copy link
Copy Markdown
Member

Setting a default value for an optional filed can create an issue when importing a resource with that field not set. For projects, the environment is optional.

We were missing an import test, but that wouldn't have actually caught this as the resource being imported would have been created by Terraform and thus would have had the default set. 🙃

Fixes: #787

Copy link
Copy Markdown

@mikeberezowski mikeberezowski left a comment

Choose a reason for hiding this comment

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

Looks good. Approved

@andrewsomething andrewsomething merged commit 017598a into main Feb 11, 2022
@andrewsomething andrewsomething deleted the asb/issues/787 branch February 11, 2022 17:00
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.

digitalocean_project environment defualts to "Development" if not initially set

2 participants