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: Fix flavor detection #551

Merged
merged 2 commits into from
Dec 21, 2018

Conversation

jtopjian
Copy link
Contributor

For #548

It appears that Terraform v0.12 won't use DefaultFunc when the field is
set to computed. While this might be a bug, we only have a few
occurrences of this in the provider, so I'm opting to work around this
instead of reporting it upstream and possibly have a legacy measure put
in place.

This commit will have the flavors still use the correct environment
variables. Detection is just deferred to outside the schema.

In addition, I made an update to the compute instance test fixtures so they work in v0.12.

@ozerovandrei These changes probably conflict with #545, but this PR should take priority. I will resolve any conflicts with #545 afterwards.

It appears that Terraform v0.12 won't use DefaultFunc when the field is
set to computed. While this might be a bug, we only have a few
occurrences of this in the provider, so I'm opting to work around this
instead of reporting it upstream and possibly have a legacy measure put
in place.

This commit will have the flavors still use the correct environment
variables. Detection is just deferred to outside the schema.
@ghost ghost added the size/M label Dec 20, 2018
@theopenlab-ci
Copy link

theopenlab-ci bot commented Dec 20, 2018

Build succeeded.

Copy link
Member

@ozerovandrei ozerovandrei left a comment

Choose a reason for hiding this comment

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

Well, it looks not so bad because we will set values inside separated single functions that do just that, instead of having additional DefaultFunc stuff at the very different part of code.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Dec 21, 2018

Build succeeded.

@jtopjian jtopjian merged commit a58ba91 into terraform-provider-openstack:master Dec 21, 2018
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.

None yet

2 participants