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

Cannot use nutanix_subnets data source #73

Closed
franc01s opened this issue Jul 22, 2019 · 4 comments
Closed

Cannot use nutanix_subnets data source #73

franc01s opened this issue Jul 22, 2019 · 4 comments

Comments

@franc01s
Copy link

Describe the bug
Cannot use nutanix_subnets datasource using a simple configuration

provider "nutanix" {
  username = "admin"
  password = "password"
  endpoint = "its-prism-central-lab"
  insecure = true
  port = 9440
  wait_timeout = 10
  //Optional
}
data "nutanix_clusters" "clusters" {
}
data "nutanix_subnets" "subnets" {
}

Expected behavior
terraform plan running without errors

Logs

➜  terraform terraform plan

Error: Invalid data source

  on main.tf line 43, in data "nutanix_subnets" "subnets":
  43: data "nutanix_subnets" "subnets" {

The provider provider.nutanix does not support data source "nutanix_subnets".

Versions (please complete the following information):

  • OS
OSX ➜  10.14.5
  • Terraform
Terraform v0.12.4
+ provider.nutanix (unversioned)
  • Nutanix Cluster
5.10.5
  • Nutanix Prism Central
5.10.5
  • Terraform provider version (using posted RC1? Compiling yourself? If so, from Develop or Master, and what commit id?
commit b22b01e704a7009f45676a0af662f58a31a78832 (HEAD -> tf-0.12-suppport, origin/tf-0.12-suppport)
Author: Marin Salinas <marinssalinas@gmail.com>
Date:   Wed Jul 17 12:22:01 2019 -0500
@coderGo93
Copy link
Contributor

Hello @franc01s, I'd like to know if this issue is still happening on branch master(newest version)? just to be sure, please

@franc01s
Copy link
Author

Hello @coderGo93 ,
Yes still the same.
Terraform v0.12.24

  • provider.nutanix v1.0.2

@coderGo93
Copy link
Contributor

coderGo93 commented Apr 16, 2020

Hello @franc01s, thanks for you reply.
Yesterday I made PR with branch fix-#73, could you please try it again if it works for you on branch fix-#73?

@franc01s
Copy link
Author

I can confirm that works now.
Thanks @coderGo93

yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this issue Nov 9, 2021
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