Skip to content

Conversation

@magreenbaum
Copy link
Member

Description

The defaults for linuxParameters were not allowing the conditional here to evaluate. linuxParameters would always contain initProcessEnabled = false since it was a default, unless the user explicitly set this parameter.

Additionally, the for loop to remove null values has to be done on the variable rather than the local variable since the variable has the object types defined. If we just removed the defaults and left the for loop to remove null values from the local values, then object defaults would be null and the map would merge with null values and result in null and initProcessEnabled wouldn't be set at all unless explicitly defined.

Motivation and Context

Stems from: #319 (comment)

Breaking Changes

No.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@bryantbiggs
Copy link
Member

started looking at this today, will continue tomorrow - tl;dr - the variable optional attributes are quite a mess and a lot of our prior logic doesn't work because now theres always null (or something else), where previously we didn't have anything unless we specified it

@bryantbiggs
Copy link
Member

relates to hashicorp/terraform-provider-aws#17988

@antonbabenko
Copy link
Member

This issue has been resolved in version 6.1.4 🎉

@github-actions
Copy link

github-actions bot commented Sep 7, 2025

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2025
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.

3 participants