Closed sysbot closed 4 years ago
Thank you for the patch! Except for the comment above, this looks good to go.
It doesn't work without changes in resource.go. So I get an error like this: couldn't parse resource keyName: vsphere_virtual_machine.win_slave.win-slave-1.10.178.3.74
@sprnza Would you please try is my pull request fixed your issue?
@adammck I addressed your comment in my pull request. Could you please review additional changes in resource.go as well? I'm hitting this issue with string index too, would be really happy to have it fixed soon.
Merged #139, which includes this. Thanks very much for the original PR. Please re-open this if your issue isn't resolved.
In the case of when mixing resources into the statefile in terraform, it's now possible to have indexes that are not always int. In the example below using the new 0.12 syntax
foreach
will result in the index being mapped to theeach.key
name instead of the integer indexes.