[ref] Deprecate and rename regenconf action to regen-conf

This commit is contained in:
Jérôme Lebleu 2016-04-10 10:42:30 +02:00
parent 91856cb770
commit a7657c1a39
4 changed files with 11 additions and 4 deletions

View file

@ -150,6 +150,11 @@ def _init_moulinette(debug=False, verbose=False, quiet=False):
'handlers': [],
'propagate': True,
},
'moulinette.interface': {
'level': level,
'handlers': handlers,
'propagate': False,
},
},
'root': {
'level': level,

View file

@ -956,8 +956,8 @@ service:
default: 50
type: int
### service_regenconf()
regenconf:
### service_regen_conf()
regen-conf:
action_help: >
Regenerate the configuration file(s) for a service and compare the result
with the existing configuration file.
@ -965,6 +965,8 @@ service:
api: PUT /services/regenconf
configuration:
lock: false
deprecated:
- regenconf
arguments:
-s:
full: --service

2
debian/control vendored
View file

@ -10,7 +10,7 @@ Homepage: https://yunohost.org/
Package: yunohost
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}
, moulinette (>= 2.3.4)
, moulinette (>= 2.3.5)
, python-psutil, python-requests, python-dnspython
, python-apt, python-miniupnpc
, glances

View file

@ -273,7 +273,7 @@ def service_log(name, number=50):
return result
def service_regenconf(service=None, force=False):
def service_regen_conf(service=None, force=False):
"""
Regenerate the configuration file(s) for a service and compare the result
with the existing configuration file.