From d0cb849f6ee65967b58268dfddde399cde659c35 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 20 Mar 2018 16:42:59 +0100 Subject: [PATCH] Performing VMWare specific arguments --- lib/cr_vmware_tpl/app.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/cr_vmware_tpl/app.py b/lib/cr_vmware_tpl/app.py index 40ddf5e..f0e7372 100644 --- a/lib/cr_vmware_tpl/app.py +++ b/lib/cr_vmware_tpl/app.py @@ -32,7 +32,7 @@ from .obj import PpBaseObject from .config import CrTplConfiguration -__version__ = '0.2.1' +__version__ = '0.2.2' LOG = logging.getLogger(__name__) @@ -646,7 +646,20 @@ class CrTplApplication(PpBaseObject): Descendant classes may override this method. """ - pass + if self.args.host: + self.config.vsphere_host = self.args.host + if self.args.port: + self.config.vsphere_port = self.args.port + if self.args.user: + self.config.vsphere_user = self.args.user + if self.args.password: + self.config.password = self.args.password + if self.args.folder: + self.config.folder = self.args.folder + if self.args.vm: + self.config.template_vm = self.args.vm + if self.args.template: + self.config.template_name = self.args.template # ------------------------------------------------------------------------- def _init_env(self): -- 2.39.5