]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Performing VMWare specific arguments
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 20 Mar 2018 15:42:59 +0000 (16:42 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 20 Mar 2018 15:42:59 +0000 (16:42 +0100)
lib/cr_vmware_tpl/app.py

index 40ddf5e4e5d24d5df1908646bd43e2a1af91adb9..f0e737249dfdfff8b54c933afb15aa28407e69e6 100644 (file)
@@ -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):