]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Enabling last steps in lib/cr_vmware_tpl/handler.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 23 Jun 2020 09:20:25 +0000 (11:20 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 23 Jun 2020 09:20:25 +0000 (11:20 +0200)
lib/cr_vmware_tpl/handler.py

index e87e097103eecf4ccfa140464a2df67b0fc1c90b..35a807faa55f5958443d19c7ee054a4852db9f05 100644 (file)
@@ -42,7 +42,7 @@ from .cobbler import CobblerError, Cobbler
 
 from .xlate import XLATOR
 
-__version__ = '1.7.4'
+__version__ = '1.7.5'
 
 LOG = logging.getLogger(__name__)
 TZ = pytz.timezone('Europe/Berlin')
@@ -312,8 +312,6 @@ class CrTplHandler(BaseHandler):
                     self.poweroff_vm()
                 self.cobbler.remove_system(tpl_sysname)
 
-        return 0
-
         if not self.abort and not self.postinstall_errors:
             self.rotate_templates()
             if not self.rotate_only:
@@ -986,7 +984,7 @@ class CrTplHandler(BaseHandler):
     def rename_and_change_vm(self):
 
         LOG.info(_("Renaming VM {o!r} => {n!r} ...").format(
-            o=self.config.template_vm, n=self.config.template_name))
+            o=self.tpl_vm_fqdn, n=self.config.template_name))
 
         vm = self.get_temp_tpl_vm()
         task = vm.Rename_Task(self.config.template_name)