self.config.password = getpass.getpass(prompt=prompt)
self.handler = CrTplHandler(
- appname=self.appname, verbose=self.verbose, base_dir=self.base_dir)
+ appname=self.appname, verbose=self.verbose, base_dir=self.base_dir, config=self.config)
- self.handler.config = self.config
if self.args.rotate:
self.handler.rotate_only = True
if self.args.abort:
self.handler.abort = True
+ self.handler.vsphere.initialized = True
self.handler.initialized = True
self.initialized = True
from fb_tools.handler import BaseHandler
+from fb_tools.vsphere import BaseVsphereHandler
+
from .config import CrTplConfiguration
__version__ = '0.10.1'
self.abort = False
self.postinstall_errors = None
+ self.vsphere = BaseVsphereHandler(
+ 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,
+ terminal_has_colors=self.terminal_has_colors, initialized=False)
+
if initialized:
self.initialized = True
+ self.vsphere.initialized = True
# -------------------------------------------------------------------------
def __call__(self):
"self.config is not a CrTplConfiguration-instance, but a "
"{}-instance instead.").format(self.config.__class__.__name__))
+
+ return
+
+
LOG.debug("Connecting to vSphere host {h}:{p} as {u!r} ...".format(
h=self.config.vsphere_host, p=self.config.vsphere_port,
u=self.config.vsphere_user))