Closed d4vydm closed 2 years ago
I believe the crash seems to be related to type assertion from interface{} to map[string]string while underlaying type is map[string]interface{}.
v is of type interface{} but has an underlaying value of type map[string]interface{}. The type assertion assumes it is map[string]string.
Tracking #478
How is the correct way to use the example?
` guest_customization_sysprep = { install_type = "PREPARED" unattend_xml = base64encode(file("unattend.xml")) } guest_customization_sysprep_custom_key_values = {
VMNAME = "${format("vdi-%03d", count.index + 1)}"
}`
I am trying but when i use it like this i get the error when i hit apply:
Error: error: { │ "api_version": "3.1", │ "code": 422, │ "message_list": [ │ { │ "details": { │ "spec.resources.guest_customization.sysprep": [ │ "{u'install_type': u'PREPARED', u'unattend_xml': u'BASE64STRING_OF_unattend.xml', u'custom_key_values': {u'VMNAME': u'vdi-tc10f-T-001'}} is valid under each of {'required': ['custom_key_values']}, {'required': ['unattend_xml']}" │ ] │ }, │ "message": "Request could not be processed.", │ "reason": "INVALID_REQUEST" │ } │ ], │ "state": "ERROR" │ }
Nutanix Cluster Information
Nutanix cluster: fraser-6.1-stable Nutanix Prism central: 6.1
Terraform Version
Terraform v1.1.9 on darwin_arm64
provider registry.terraform.io/nutanix/nutanix v1.4.1
Affected Resource(s)
/
Terraform Configuration Files
This part of the TF config file is relevant:
Debug Output
/
Panic Output
Expected Behavior
/
Actual Behavior
/
Steps to Reproduce
terraform apply
References
/