[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': [], 'handlers': [],
'propagate': True, 'propagate': True,
}, },
'moulinette.interface': {
'level': level,
'handlers': handlers,
'propagate': False,
},
}, },
'root': { 'root': {
'level': level, 'level': level,

View file

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

2
debian/control vendored
View file

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

View file

@ -273,7 +273,7 @@ def service_log(name, number=50):
return result 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 Regenerate the configuration file(s) for a service and compare the result
with the existing configuration file. with the existing configuration file.