from .xlate import XLATOR
-__version__ = '3.1.7'
+__version__ = '3.1.8'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
g=guest_id, cpu=vm.num_cpus, f=vm.folder, m=vm.memory, b=int(vm.boot_delay * 1000))
if vm.vm_template:
tpl = ' scsi_type = data.vsphere_virtual_machine.{}.scsi_type\n'
- content += tpl.format(tpl_vm['tf_name'])
+ content += tpl.format(tpl_vm.tf_name)
content += '\n'
content += textwrap.indent(textwrap.dedent('''\
adapter_type = data.{vvm}.{t}.{nit}[0]
}}
'''), ' ').format(
- n=nw_name, t=tpl_vm['tf_name'],
+ n=nw_name, t=tpl_vm.tf_name,
vvm='vsphere_virtual_machine', nit='network_interface_types')
content += '\n'
}}
'''), ' ').format(
- t=tpl_vm['tf_name'], h=vm.hostname, d=vm.domain)
+ t=tpl_vm.tf_name, h=vm.hostname, d=vm.domain)
content += self._create_instfile_nw(vm)
content += ' }\n'