from .xlate import XLATOR
-__version__ = '1.5.1'
+__version__ = '1.5.2'
LOG = logging.getLogger(__name__)
TZ = pytz.timezone('Europe/Berlin')
return self.tpl_vm_hostname
return self.tpl_vm_hostname + '.' + self.config.tpl_vm_domain
+ # -------------------------------------------------------------------------
+ @property
+ def tpl_name(self):
+ """The final name of the VSphere template."""
+ if not self.config:
+ return None
+ if not self.config.os_id:
+ return None
+ return 'template-' + self.config.os_id
+
# -------------------------------------------------------------------------
def as_dict(self, short=True):
"""
"""
res = super(CrTplHandler, self).as_dict(short=short)
+ res['tpl_name'] = self.tpl_name
res['tpl_vm_fqdn'] = self.tpl_vm_fqdn
return res