]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Using VsphereServer for vsphere oprations
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 24 Oct 2018 09:14:35 +0000 (11:14 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 24 Oct 2018 09:14:35 +0000 (11:14 +0200)
lib/cr_vmware_tpl/handler.py
python_fb_tools

index 75dd9e1172745b2d02afbae8cc083993135cd1b1..266fbda4c4727fe490df5c6b7ff569b08c8d371c 100644 (file)
@@ -38,10 +38,11 @@ from fb_tools.errors import CannotConnectVsphereError, NoDatastoreFoundError
 from fb_tools.handler import BaseHandler
 
 from fb_tools.vsphere import BaseVsphereHandler
+from fb_tools.vsphere.server import VsphereServer
 
 from .config import CrTplConfiguration
 
-__version__ = '0.10.1'
+__version__ = '0.10.2'
 
 LOG = logging.getLogger(__name__)
 TZ = pytz.timezone('Europe/Berlin')
@@ -106,12 +107,12 @@ class CrTplHandler(BaseHandler):
         self.abort = False
         self.postinstall_errors = None
 
-        self.vsphere = BaseVsphereHandler(
+        self.vsphere = VsphereServer(
             appname=self.appname, verbose=self.verbose, base_dir=self.base_dir,
             host=self.config.vsphere_host, port=self.config.vsphere_port,
             user=self.config.vsphere_user, password=self.config.password,
             dc=self.config.dc, cluster=self.config.vsphere_cluster,
-            simulate=self.simulate, force=self.force,
+            auto_close=True, simulate=self.simulate, force=self.force,
             terminal_has_colors=self.terminal_has_colors, initialized=False)
 
         if initialized:
index a44f6dc298b3ecbacceab04c51ca82d0b1a4b71e..d542794caaf1b5336ad451901cbb0b9e6d58b6b2 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a44f6dc298b3ecbacceab04c51ca82d0b1a4b71e
+Subproject commit d542794caaf1b5336ad451901cbb0b9e6d58b6b2