Open dhinesku opened 1 month ago
Hello, dhinesku! 🖐
Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.
If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.
Confirmed.
provider "vsphere" {
user = "administrator@vsphere.local"
password = "..."
vsphere_server = "..."
allow_unverified_ssl = true
}
data "vsphere_guest_os_customization" "foo" {
name = "foo_windows"
}
data "vsphere_guest_os_customization" "bar" {
name = "bar_linux"
}
{
"version": 4,
"terraform_version": "1.9.5",
"serial": 1,
"lineage": "3f4756c9-7f16-9b6e-4c10-aa26d3af2475",
"outputs": {},
"resources": [
{
"mode": "data",
"type": "vsphere_guest_os_customization",
"name": "bar",
"provider": "provider[\"registry.terraform.io/hashicorp/vsphere\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"change_version": "1726772246",
"description": "Bar",
"id": "bar_linux",
"last_update_time": "2024-09-19 18:57:26 +0000 UTC",
"name": "bar_linux",
"spec": [
{
"dns_server_list": [
"1.1.1.1",
"8.8.8.8",
"8.8.4.4"
],
"dns_suffix_list": [],
"linux_options": [
{
"domain": "example.com",
"host_name": "",
"hw_clock_utc": true,
"script_text": "",
"time_zone": "US/Eastern"
}
],
"network_interface": [
{
"dns_domain": "",
"dns_server_list": [],
"ipv4_address": "",
"ipv4_netmask": 0,
"ipv6_address": "",
"ipv6_netmask": 0
}
],
"windows_options": [],
"windows_sysprep_text": ""
}
],
"type": "Linux"
},
"sensitive_attributes": []
}
]
},
{
"mode": "data",
"type": "vsphere_guest_os_customization",
"name": "foo",
"provider": "provider[\"registry.terraform.io/hashicorp/vsphere\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"change_version": "1726771695",
"description": "Foo",
"id": "foo_windows",
"last_update_time": "2024-09-19 18:48:15 +0000 UTC",
"name": "foo_windows",
"spec": null,
"type": "Windows"
},
"sensitive_attributes": []
}
]
}
],
"check_results": null
}
Community Guidelines
Terraform
1.9.6
Terraform Provider
2.9.2
VMware vSphere
8.0.2
Description
The Data block for
vsphere_guest_os_customization
for Windows type returns spec asnull
. The Spec is available on the vSphere, though.Affected Resources or Data Sources
data/vsphere_guest_os_customization
Terraform Configuration
Debug Output
NA
Panic Output
No response
Expected Behavior
The data block should return spec available on the resource. As the Linux type returns the data as available and accurate in the vSphere.
Actual Behavior
The data block of spec returns null.
Steps to Reproduce
vsphere_guest_os_customization
in vSphere through terraform or manual from the vSphere with type as Windows/vsphere_guest_os_customization
and check the spec.Environment Details
No response
Screenshots
References
No response