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 specify category key names dynamically in resource:nutanix_virtual_machine #61

Closed
rdobrynski opened this issue Jun 11, 2019 · 0 comments · Fixed by #76
Closed

Comments

@rdobrynski
Copy link

Describe the bug
When defining a nutanix_virtual_machine resource, using an expression to assign a category key fails. The expression does not expand to it's value.

Expected behavior
expression for category key should expand to it's value, instead of pass the literal expression to prism central as the category key name.

Logs
Error: Error applying plan:

1 error occurred:
* nutanix_virtual_machine.vm1: 1 error occurred:
* nutanix_virtual_machine.vm1: error: {
"api_version": "3.1",
"code": 404,
"kind": "vm",
"message_list": [
{
"message": "Category ${var.test_category_key}: does not exist.",
"reason": "ENTITY_NOT_FOUND"
}
],
"state": "ERROR"
}
Versions (please complete the following information):

  • OS that is executing Terraform
    MacOS Mojave 10.14.5

  • Terraform
    0.11.14

  • Nutanix Cluster (Prism Element / AOS)
    5.10.4 LTS

  • Nutanix Prism Central
    5.10.4

  • Terraform provider version (using posted RC1? Compiling yourself? If so, from Develop or Master, and what commit id?
    provider.nutanix: version = "~> 1.0"

Additional context
Add any other context about the problem here.

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 a pull request may close this issue.

1 participant