from .xlate import XLATOR
-__version__ = '2.8.9'
+__version__ = '2.9.0'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
terminal_has_colors=False, initialized=False):
self.pdns = None
- self.vsphere = None
+ self.vsphere = {}
self.config = None
self.terraform_cmd = None
res['stop_at_step'] = self.stop_at_step
res['steps'] = copy.copy(self.steps)
res['tz_name'] = self.tz_name
+ res['vsphere'] = {}
+ for vsphere_name in self.vsphere.keys():
+ res['vsphere'][vsphere_name] = self.vsphere[vsphere_name].as_dict(short=short)
return res
except PowerDNSHandlerError as e:
raise ExpectedHandlerError(str(e))
- try:
- 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.vsphere_password,
- dc=self.config.vsphere_dc, simulate=self.simulate, force=self.force,
- terminal_has_colors=self.terminal_has_colors, initialized=True,
- )
-
- self.vsphere.get_about()
- except VSphereExpectedError as e:
- raise ExpectedHandlerError(str(e))
+# try:
+# 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.vsphere_password,
+# dc=self.config.vsphere_dc, simulate=self.simulate, force=self.force,
+# terminal_has_colors=self.terminal_has_colors, initialized=True,
+# )
+#
+# self.vsphere.get_about()
+# except VSphereExpectedError as e:
+# raise ExpectedHandlerError(str(e))
# -------------------------------------------------------------------------
def check_terraform_version(self):