[Bug]: allow_extension_operations Does Not Properly Control Creation of Extensions #36
Closed
2 tasks done
Labels
bug
Something isn't working
Bug Description
There appears to be an issue with how the allow_extension_operations variable is controlling the creation of virtual machine extensions in the module. Despite setting allow_extension_operations to false, the extensions are still being created, which leads to Terraform applying the extensions even when the user explicitly intends to prevent them.
Steps to Reproduce:
Expected Behavior:
When allow_extension_operations is set to false, no virtual machine extensions should be created.
Actual Behavior:
Extensions are still created even when allow_extension_operations is set to false.
Terraform-Version
Terraform v1.9.3
Relevant log output
No response
Relevant Error Messages
No response
Additional Information
Possible Root Cause:
It appears that the for_each logic does not properly respect the condition tied to allow_extension_operations. The current approach should be revisited to ensure that the extensions are only created when allow_extension_operations is set to true.
Potential Fix:
One approach could be restructuring the conditional logic around for_each or ensuring that the var.allow_extension_operations variable is respected within the resource definition.
Privacy Statement
Code of Conduct
The text was updated successfully, but these errors were encountered: