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

cloudtemple_compute_network data doesnt retrieve the same id everytime #84

Closed
pbesret opened this issue Oct 10, 2023 · 0 comments · Fixed by #85
Closed

cloudtemple_compute_network data doesnt retrieve the same id everytime #84

pbesret opened this issue Oct 10, 2023 · 0 comments · Fixed by #85
Assignees
Labels
bug Something isn't working next
Milestone

Comments

@pbesret
Copy link
Contributor

pbesret commented Oct 10, 2023

Describe the bug

The vlan id retrieved through the "cloudtemple_compute_network" data configured with the VLAN name does not retrieve the correct VLAN and (randomly?) retrieves a different VLAN ID each time a plan is relaunched, even though no changes have been made to the code or the resource.

Current Behavior
The VLAN ID can be different each time we launch a terraform plan.

Expected behavior
We should be able to add a filter by distributed virtual switch to ensure we get the right network.

Steps to reproduce

data "cloudtemple_compute_network" "vlan" {
  name = "AVR-LAN-ISOLE"
}

os_network_adapter {
  network_id = data.cloudtemple_compute_network.vlan.id
}
@pbesret pbesret added the bug Something isn't working label Oct 10, 2023
@pbesret pbesret added this to the v0.8.1 milestone Oct 10, 2023
@pbesret pbesret self-assigned this Oct 10, 2023
@pbesret pbesret added the next label Oct 10, 2023
@pbesret pbesret linked a pull request Oct 11, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next
Projects
None yet
1 participant