[enh] Better message during service regenconf.

This commit is contained in:
opi 2016-03-27 11:24:33 +02:00
parent b0dc30edde
commit f176c3061e
2 changed files with 4 additions and 2 deletions

View file

@ -126,7 +126,8 @@
"service_status_failed" : "Unable to determine status of service '{:s}'",
"service_no_log" : "No log to display for service '{:s}'",
"service_cmd_exec_failed" : "Unable to execute command '{:s}'",
"services_configured": "Configuration successfully generated",
"service_configured": "Configuration successfully generated for service '{:s}'",
"service_configured_all": "Configuration successfully generated for every services",
"service_configuration_conflict": "The file {file:s} has been changed since its last generation. Please apply the modifications manually or use the option --force (it will erase all the modifications previously done to the file).",
"no_such_conf_file": "Unable to copy the file {file:s}: the file does not exist",
"service_add_configuration": "Adding the configuration file {file:s}",

View file

@ -289,9 +289,10 @@ def service_regenconf(service=None, force=False):
if service is not None:
hook_callback('conf_regen', [service], args=[force])
logger.success(m18n.n('service_configured', service))
else:
hook_callback('conf_regen', args=[force])
logger.success(m18n.n('services_configured'))
logger.success(m18n.n('service_configured_all'))
def _run_service_command(action, service):