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

Address crashes caused by lazily bound mac address values #288

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

ddelnano
Copy link
Collaborator

@ddelnano ddelnano commented Jan 10, 2024

Summary: Address crashes caused by lazily bound mac address values

This fixes #191, #232 and #247 and closes #236. This PR modifies how mac address values are handled at diff evaluation time rather than enforcing a specific format within terraform's state. Rather than using StateFunc, which has issues with computed fields, this suppresses a plan's diff if the pre and post plan mac address are equal to each other using Go's HardwareAddr type.

Test plan:

  • Verified that TestAccXenorchestraVm_createWithSentinelPlanValue fails with the expected error without this fix
  • New tests verify that the existing functionality is preserved
  • Entire acceptance suite passes

@ddelnano ddelnano merged commit 6b68d81 into master Jan 10, 2024
@ddelnano ddelnano deleted the ddelnano/address-lazily-known-mac-address-values branch January 10, 2024 23:58
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.

Plugin crash when trying to pass a computed value for a mac address
1 participant