from .xlate import XLATOR
-__version__ = '1.3.4'
+__version__ = '1.3.5'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
class VsphereConfig(FbBaseObject):
"""Class for encapsulation of config data of a connection to a VSPhere center."""
+ default_host = 'vcs01.ppbrln.internal'
default_port = 443
default_user = 'Administrator@vsphere.local'
default_dc = 'vmcc'
initialized=False):
self._name = None
- self._host = None
+ self._host = self.default_host
self._port = self.default_port
self._user = self.default_user
self._password = None
@host.setter
def host(self, value):
if value is None:
- self._host = None
+ self._host = self.default_host
return
val = str(value).strip().lower()
if val == '':
def eval_config_section(self, config, section_name):
"""Evaluating of all found configuration options."""
+ if self.verbose > 2:
+ msg = _("Checking config section {!r}:").format(section_name)
+ LOG.debug(msg)
+
super(CrTfConfiguration, self).eval_config_section(config, section_name)
sn = section_name.lower()