from .config import CrTplConfiguration
-__version__ = '0.10.7'
+__version__ = '0.10.8'
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.config.template_vm, as_vmw_obj=True)
+ if not self.tpl_vm:
+ if self.simulate:
+ LOG.warn("Simulation mode - VM not created in real.")
+ else:
+ raise HandlerError("Could not find VM after creating.")
return 0
else:
# self.check_network()
# self.create_vm()
- self.tpl_vm = self.get_temp_tpl_vm()
- if not self.tpl_vm:
- raise HandlerError(
- "Could not find VM after creating.")
+# self.tpl_vm = self.get_temp_tpl_vm()
+# if not self.tpl_vm:
+# raise HandlerError(
+# "Could not find VM after creating.")
self.poweron_vm()
self.wait_for_finish_install()
self.get_postinstall_error()