From 28e1226491a982de1fda6828f062837e8239964f Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 7 Feb 2019 15:26:53 +0100 Subject: [PATCH] Bugfixing lib/cr_vmware_tpl/handler.py --- lib/cr_vmware_tpl/handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index f94eda5..73e1dc1 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -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 -- 2.39.5