From c988b551d30fc86ff9f1dab128015f46b970a91a Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 20 Mar 2018 15:24:02 +0100 Subject: [PATCH] Minor changes --- bin/create-vmware-template | 2 +- lib/cr_vmware_tpl/app.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/create-vmware-template b/bin/create-vmware-template index 0f0289b..f0eab74 100755 --- a/bin/create-vmware-template +++ b/bin/create-vmware-template @@ -31,7 +31,7 @@ appname = os.path.basename(sys.argv[0]) locale.setlocale(locale.LC_ALL, '') -app = CrTplApplication(appname=appname) +app = CrTplApplication(appname=appname, base_dir=base_dir) app.initialized = True if app.verbose > 2: diff --git a/lib/cr_vmware_tpl/app.py b/lib/cr_vmware_tpl/app.py index 792c14d..fe2048e 100644 --- a/lib/cr_vmware_tpl/app.py +++ b/lib/cr_vmware_tpl/app.py @@ -28,7 +28,7 @@ from .colored import ColoredFormatter, colorstr from .obj import PpBaseObject -__version__ = '0.1.1' +__version__ = '0.1.2' LOG = logging.getLogger(__name__) @@ -145,6 +145,8 @@ class CrTplApplication(PpBaseObject): self._init_env() self._perform_env() + self.post_init() + # ----------------------------------------------------------- @property def exit_value(self): @@ -387,8 +389,7 @@ class CrTplApplication(PpBaseObject): """ - if self.simulate: - LOG.warn("Simulation mode - nothing is really done.") + pass # ------------------------------------------------------------------------- def _run(self): @@ -399,7 +400,7 @@ class CrTplApplication(PpBaseObject): """ - raise FunctionNotImplementedError('_run', self.__class__.__name__) + LOG.info("Starting ...") # ------------------------------------------------------------------------- def __call__(self): -- 2.39.5