Vsphere-iso and adding a second and third disk - --> vsphere-iso: error creating vm: Invalid configuration for device '2'

Hello,

Based on documentation here, I should be able to add a second disk but when I do, I get this error. vsphere-iso: error creating vm: Invalid configuration for device ‘2’.

I am on 1.6.6 for Packer.
disk controller type is pvscsi

“storage”: [
{
“disk_size”: 102400,
“disk_thin_provisioned”: true
},
{
“disk_size”: 10240,
“disk_thin_provisioned”: true
}

Once I remove the second disk, the template builds. What am I missing? I’ve tried explicitly selecting the controller too… Thoughts?

After some troubleshooting. This works… but I am not sure why? I added a second controller and then mapped disk 2 to controller 2 (Index 1.)

“disk_controller_type”: [“pvscsi”, “pvscsi”],
“storage”: [
{
“disk_size”: 102400,
“disk_controller_index”: 0,
“disk_thin_provisioned”: true
},
{
“disk_size”: 10240,
“disk_controller_index”: 1,
“disk_thin_provisioned”: true
}
],

I opened up a bug on the github page. This seems like something that might not be functioning right.