]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Bugfixing lib/cr_vmware_tpl/handler.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 7 Feb 2019 14:26:53 +0000 (15:26 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 7 Feb 2019 14:26:53 +0000 (15:26 +0100)
lib/cr_vmware_tpl/handler.py

index f94eda5873e8f63da36e21f635ca3b4024590292..73e1dc185b441f60e6cde2155f9706ad51af2351 100644 (file)
@@ -36,7 +36,7 @@ from fb_tools.vsphere.iface import VsphereVmInterface
 
 from .config import CrTplConfiguration
 
-__version__ = '1.2.0'
+__version__ = '1.2.1'
 
 LOG = logging.getLogger(__name__)
 TZ = pytz.timezone('Europe/Berlin')
@@ -736,7 +736,7 @@ class CrTplHandler(BaseHandler):
         pattern_tpl = r'^' + re.escape(self.config.template_name)
         re_tpl = re.compile(pattern_tpl, re.IGNORECASE)
 
-        templates = self.vsphere.get_vms(re_tpl, is_template=True)
+        templates = self.vsphere.get_vms(re_tpl, is_template=True, as_vmw_obj=True)
         if not templates:
             LOG.info("Did not found any existing templates.")
             return