mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Wrong service name variable
This commit is contained in:
parent
18bbdd9628
commit
81215f7f12
1 changed files with 3 additions and 2 deletions
|
@ -262,12 +262,13 @@ def _run_service_command(action, service):
|
|||
Run services management command (start, stop, enable, disable)
|
||||
|
||||
Keyword argument:
|
||||
service -- Service name
|
||||
action -- Action to perform
|
||||
service -- Service name
|
||||
|
||||
"""
|
||||
if service not in _get_services().keys():
|
||||
raise MoulinetteError(errno.EINVAL, m18n.n('service_unknown', name))
|
||||
raise MoulinetteError(errno.EINVAL, m18n.n('service_unknown',
|
||||
service))
|
||||
|
||||
cmd = None
|
||||
if action in ['start', 'stop']:
|
||||
|
|
Loading…
Add table
Reference in a new issue