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

Computed provider variables properly validate #2457

Merged
merged 4 commits into from
Jun 24, 2015
Merged

Conversation

mitchellh
Copy link
Contributor

Fixes #2362

This adds a lot of tests (most already passing before this PR, but had to be verified) and fixes some issues where computed provider variables weren't working as expected since they'd fail validation. If you look at #2362 it explains quite well.

This fixes that, and added one failing test that is now passing to verify behavior.

@phinze
Copy link
Contributor

phinze commented Jun 24, 2015

Just to clarify - this means we don't get plan-time validation on computed provider variables, even if they happen to be known without applying?

Code LGTM

@mitchellh
Copy link
Contributor Author

@phinze That's right, but I think its actually ideal:

  • If there are no computed fields, then we get plan-time validation
  • If there are computed fields, we get run-time validation

That is really the best we can do, but I'm glad we can have both!

mitchellh added a commit that referenced this pull request Jun 24, 2015
Computed provider variables properly validate
@mitchellh mitchellh merged commit c144491 into master Jun 24, 2015
@mitchellh mitchellh deleted the b-provider-computed branch June 24, 2015 17:14
@ghost
Copy link

ghost commented May 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provider with dependencies does not wait for dependencies
2 participants