From be22a3ec1f9779f3cbce5555fcc91a45dd8ddbb4 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 27 May 2020 15:38:51 +0200 Subject: [PATCH] Initializing Cobbler object --- lib/cr_vmware_tpl/handler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index 375554a..db90b61 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -40,7 +40,7 @@ from .cobbler import CobblerError, Cobbler from .xlate import XLATOR -__version__ = '1.4.1' +__version__ = '1.4.2' LOG = logging.getLogger(__name__) TZ = pytz.timezone('Europe/Berlin') @@ -120,6 +120,11 @@ class CrTplHandler(BaseHandler): terminal_has_colors=self.terminal_has_colors, initialized=False) self.cluster = None + self.cobbler = Cobbler( + appname=self.appname, verbose=self.verbose, base_dir=self.base_dir, + config=config, imulate=self.simulate, force=self.force, + terminal_has_colors=self.terminal_has_colors, initialized=False) + if initialized: self.initialized = True self.vsphere.initialized = True -- 2.39.5