from .xlate import __mo_file__ as __xlate_mo_file__
from .xlate import XLATOR, LOCALE_DIR, DOMAIN
-__version__ = '1.1.5'
+__version__ = '1.1.6'
LOG = logging.getLogger(__name__)
SIGNAL_NAMES = {
simulate=self.simulate, force=self.force, config=self.config,
terminal_has_colors=self.terminal_has_colors)
+ self.handler.get_secret = self.get_secret
+ self.handler.exit = self.exit
+
if self.args.stop_after:
self.handler.stop_at_step = self.args.stop_after
from .xlate import XLATOR
-__version__ = '3.5.2'
+__version__ = '3.5.3'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
raise CommandNotFoundError('terraform')
self.check_terraform_version()
- pdns_api_key = self.config.pdns_api_key
- if not pdns_api_key:
- msg = '\n' + _("Please input the {}:").format(self.colored(
- 'PowerDNS API key', 'AQUA'))
- print(msg)
- pdns_api_key = password_input(prompt='Key: ')
- if pdns_api_key == '':
- msg = _("No {} given.").format('PowerDNS API key')
- raise ExpectedHandlerError(msg)
-
self.pdns = PowerDNSServer(
appname=self.appname, verbose=self.verbose, base_dir=self.base_dir,
master_server=self.config.pdns_master_server,
raise ExpectedHandlerError(msg)
if not vsphere_password:
- msg = '\n' + _("Please input the {}:").format(self.colored(
- _('vSphere user password'), 'AQUA'))
- print(msg)
- vsphere_password = password_input(prompt=(_('vSphere user name') + ': '))
- if vsphere_password == '':
- msg = _("No {} given.").format(_('vSphere user password'))
- raise ExpectedHandlerError(msg)
+ prompt = _("User password")
+ item = _('Password for user {u!r} of vSphere {n} on {h!r}').format(
+ u=vsphere_user, n=vname, h=self.config.vsphere[vname].host)
+ vsphere_password = self.get_secret(prompt=prompt, item_name=item)
try:
params = {