mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] Cleaner logs for _get_conf_hashes
This commit is contained in:
parent
aad3740933
commit
e857f4f0b2
1 changed files with 10 additions and 5 deletions
|
@ -639,12 +639,17 @@ def _get_pending_conf(services=[]):
|
||||||
|
|
||||||
def _get_conf_hashes(service):
|
def _get_conf_hashes(service):
|
||||||
"""Get the registered conf hashes for a service"""
|
"""Get the registered conf hashes for a service"""
|
||||||
try:
|
|
||||||
return _get_services()[service]['conffiles']
|
d = _get_services()
|
||||||
except:
|
|
||||||
logger.debug("unable to retrieve conf hashes for %s",
|
if (service not in d.keys()):
|
||||||
service, exc_info=1)
|
logger.debug("Service %s is not in services.yml yet.", service)
|
||||||
return {}
|
return {}
|
||||||
|
elif ('conffiles' not in d[service].keys()):
|
||||||
|
logger.debug("No configuration files for service %s.", service)
|
||||||
|
return {}
|
||||||
|
else:
|
||||||
|
return d[service]['conffiles']
|
||||||
|
|
||||||
|
|
||||||
def _update_conf_hashes(service, hashes):
|
def _update_conf_hashes(service, hashes):
|
||||||
|
|
Loading…
Add table
Reference in a new issue