From: Frank Brehm Date: Tue, 20 Mar 2018 15:42:59 +0000 (+0100) Subject: Performing VMWare specific arguments X-Git-Tag: 0.1.1~105 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=d0cb849f6ee65967b58268dfddde399cde659c35;p=pixelpark%2Fcreate-vmware-tpl.git Performing VMWare specific arguments --- 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):