# Own modules
from fb_tools.common import pp, to_bool, to_str, RE_DOT_AT_END
-
from fb_tools.errors import HandlerError, ExpectedHandlerError, CommandNotFoundError
-
from fb_tools.handling_obj import HandlingObject, CalledProcessError
-
from fb_tools.handler import BaseHandler
-from fb_tools.vsphere.server import VsphereServer
-
-from fb_tools.vsphere.errors import VSphereExpectedError
+from fb_vmware.errors import VSphereExpectedError
+from fb_vmware.connect import VsphereConnection
from fb_pdnstools.server import PowerDNSServer
from fb_pdnstools.errors import PowerDNSHandlerError
params_out = copy.copy(params)
if self.verbose < 5:
params_out['password'] = '******'
- msg = _("Initialising a {}-object with params:").format('VsphereServer')
+ msg = _("Initialising a {}-object with params:").format('VsphereConnection')
msg += '\n' + pp(params_out)
LOG.debug(msg)
- vsphere = VsphereServer(**params)
+ vsphere = VsphereConnection(**params)
self.vsphere[vname] = vsphere
except VSphereExpectedError as e:
vsphere.get_about()
if self.verbose > 2:
- msg = _("Created {}-object:").format('VsphereServer')
+ msg = _("Created {}-object:").format('VsphereConnection')
msg += '\n' + pp(vsphere.as_dict())
LOG.debug(msg)