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

fix: memory_ballooning for false value properly set #442

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

engelmi
Copy link
Collaborator

@engelmi engelmi commented Jun 17, 2022

Please describe the change you are making

Currently, if the memory_ballooning flag is set to false, the default-value check of GetOk of the terraform sdk returns the status not found - therefore skipping setting the value. This results in the engine setting the value to the default one (true). This PR attempts to fix this by using the GetOkExists function - which should be used carefully.

hashicorp/terraform#15723
hashicorp/terraform-plugin-sdk#350

Are you the owner of the code you are sending in, or do you have permission of the owner?

yes

The code will be published under the BSD 3 clause license. Have you read and understood this license?

yes

@engelmi engelmi requested review from a user and eslutsky June 17, 2022 13:30
@engelmi engelmi merged commit b2201aa into main Jun 17, 2022
@engelmi engelmi deleted the fix-memory-ballooning-check branch June 17, 2022 14:13
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.

1 participant