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 #663: Eliminate unnecessary newState object from routing zone resource Read() method #664

Merged
merged 1 commit into from
May 21, 2024

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented May 20, 2024

The Read() method of apstra_datacenter_routing_zone resource unnecessarily tracked two state objects:

  • state
  • newState

...and committed the wrong one to the Terraform state backend.

This PR eliminates newState and ensures that the correct data is committed to the state backend during Read()

@chrismarget-j chrismarget-j requested a review from bwJuniper May 20, 2024 21:36
@chrismarget-j chrismarget-j merged commit b1f1d5b into main May 21, 2024
1 check passed
@chrismarget-j chrismarget-j deleted the bug/663-routing-zone-read-bug branch May 21, 2024 01:43
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.

2 participants