from .xlate import __mo_file__ as __xlate_mo_file__
from .xlate import XLATOR, LOCALE_DIR, DOMAIN
-__version__ = '1.3.2'
+__version__ = '1.3.3'
LOG = logging.getLogger(__name__)
SIGNAL_NAMES = {
if not self.handler.vsphere_password:
+ # Get the name of the first (and hopefully only) VSphere
+ vname = None
+ for vn in self.handler.vsphere.keys():
+ vname = vn
+ break
+
if need_nl:
print('')
prompt = self.colored(_("User password of {!r}").format(
from ..xlate import XLATOR
-__version__ = '0.1.0'
+__version__ = '0.1.1'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
self.eval_errors).format(n=self.eval_errors, f=str(yaml_file))
raise ExpectedHandlerError(msg)
+ if not self.vms:
+ msg = _("Did not found any VMs to deploy in file {!r}.").format(str(yaml_file))
+ raise ExpectedHandlerError(msg)
+
LOG.info(_("Finished step {!r}.").format('read-yaml'))
if self.stop_at_step == 'read-yaml':
raise AbortExecution('read-yaml')
from ..xlate import XLATOR
-__version__ = '0.1.2'
+__version__ = '0.1.3'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
if self.stop_at_step == 'vmw-init':
self.incr_verbosity()
+ LOG.debug(_("Initialize VSPhere ..."))
# Test for multiple VSphere references
found_vspheres = []
for vm in self.vms:
if vm.vsphere in self.vsphere:
continue
vname = vm.vsphere
+ LOG.debug(_("Initializing VSphere {!r} ...").format(vname))
if vname not in self.config.vsphere:
msg = _("VSPhere {!r} not defined in configuration.").format(vname)
raise ExpectedHandlerError(msg)
if not self.vsphere_user and self.config.vsphere[vname].user:
+ LOG.debug(_("Setting {st} to {what!r}.").format(
+ st='handler.vsphere_user', what=self.config.vsphere[vname].user))
self.vsphere_user = self.config.vsphere[vname].user
if not self.vsphere_password and self.config.vsphere[vname].password:
+ LOG.debug(_("Setting {}.").format('handler.vsphere_password'))
self.vsphere_password = self.config.vsphere[vname].password
try: