from .xlate import XLATOR
-__version__ = '1.7.1'
+__version__ = '1.7.2'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
LOG.warn(_("Only executing of template rotating."))
else:
self.create_vm()
- self.tpl_vm = self.vsphere.get_vm(self.tpl_vm_fqdn, as_vmw_obj=True)
+ self.tpl_vm = self.get_temp_tpl_vm()
if self.tpl_vm:
LOG.debug(_("Created VM as {cls}: {vm!r}").format(
cls=self.tpl_vm.__class__.__name__, vm=self.tpl_vm))
# -------------------------------------------------------------------------
def get_temp_tpl_vm(self):
- return self.vsphere.get_vm(self.config.template_vm, as_vmw_obj=True)
+ return self.vsphere.get_vm(self.tpl_vm_fqdn, as_vmw_obj=True)
# -------------------------------------------------------------------------
def select_data_store(self):