_ = XLATOR.gettext
ngettext = XLATOR.ngettext
-__version__ = '0.7.0'
+__version__ = '0.7.1'
# =============================================================================
return
module_entry = pfile.modules[self.module_name]
- if self.verbose > 0:
+ if self.verbose > 1:
msg = _(
"Puppetfile entry of module {m!r} not found in Puppetfile of environment "
"{e!r}:").format(m=self.module_name, e=env)
if len(env) > max_len_env:
max_len_env = len(env)
for env in self.mod_env_info.keys():
- msg = ' * {env:<{width}} {info}'.format(
- width=(max_len_env + 1), env=(self.colored(env, 'CYAN') + ':'),
- info=self.mod_env_info[env])
+ diff = max_len_env - len(env)
+ gap = ' ' * diff
+ el = self.colored(env, 'CYAN') + ':' + gap
+ msg = ' * {env} {info}'.format(env=el, info=self.mod_env_info[env])
print(msg)
self.empty_line()