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

Unable to filter subnet by cluster #635

Closed
jlsilv159 opened this issue Sep 12, 2023 · 1 comment
Closed

Unable to filter subnet by cluster #635

jlsilv159 opened this issue Sep 12, 2023 · 1 comment

Comments

@jlsilv159
Copy link

Nutanix Cluster Information

Terraform Version 1.0.8 Nutanix terraform provider 1.9.3

Affected Resource(s)

*data "nutanix_subnet" "subnet" your query returned more than one result. Please use subnet_id argument or use additional filter instead

unable to filter subnet by cluster when building a vm and specifying a subnet name. We have the same subnet names configured on several clusters. query returns all matching subnet names in prism central server. Need a clear example of how to filter results further if this is supported by cluster.

when using data sources:
data "nutanix_subnet" "test" {
subnet_id = nutanix_subnet.test.id
}

data "nutanix_subnet" "test-name" {
subnet_name = nutanix_subnet.test.name
}

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file.

Debug Output

Panic Output

References

  • #0000 <!---Github Issue number --->
@joeselway
Copy link

I am also having this issue - can you please advise what solution you found to mark as completed?

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

No branches or pull requests

2 participants