vm_template = d.vsphere_virtual_machine('vm_template',
AttributeError: module 'terrascript.vsphere.d' has no attribute 'vsphere_virtual_machine'
python-terrascript/terrascript/vsphere/d.py is missing the declaration for a vsphere_virtual_machine data source.
This data source is required by Terraform for cloning from an existing template. Which means for Terraform, the vsphere_virtual_machine is required as both a resource and data source.
Fix:
Adding the following fixes this issue:
# ~/vsphere/d.py
class vsphere_virtual_machine(_data): pass
virtual_machine = vsphere_virtual_machine
Additional missing data sources:vsphere_custom_attributevsphere_datastore_cluster
Error:
python-terrascript/terrascript/vsphere/d.py
is missing the declaration for a vsphere_virtual_machine data source.This data source is required by Terraform for cloning from an existing template. Which means for Terraform, the
vsphere_virtual_machine
is required as both a resource and data source.Fix: Adding the following fixes this issue:
Additional missing data sources:
vsphere_custom_attribute
vsphere_datastore_cluster
Additional missing resources
vsphere_custom_attribute
vsphere_datastore_cluster
vsphere_storage_drs_vm_override