mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[ref] Deprecate and rename regenconf action to regen-conf
This commit is contained in:
parent
91856cb770
commit
a7657c1a39
4 changed files with 11 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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
2
debian/control
vendored
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue