mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Implementing comments
This commit is contained in:
parent
5b7536cf10
commit
0b6ccaf31a
1 changed files with 4 additions and 4 deletions
|
@ -640,16 +640,16 @@ 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"""
|
||||||
|
|
||||||
d = _get_services()
|
services = _get_services()
|
||||||
|
|
||||||
if service not in d.keys():
|
if service not in services:
|
||||||
logger.debug("Service %s is not in services.yml yet.", service)
|
logger.debug("Service %s is not in services.yml yet.", service)
|
||||||
return {}
|
return {}
|
||||||
elif 'conffiles' not in d[service].keys():
|
elif 'conffiles' not in services[service]:
|
||||||
logger.debug("No configuration files for service %s.", service)
|
logger.debug("No configuration files for service %s.", service)
|
||||||
return {}
|
return {}
|
||||||
else:
|
else:
|
||||||
return d[service]['conffiles']
|
return services[service]['conffiles']
|
||||||
|
|
||||||
|
|
||||||
def _update_conf_hashes(service, hashes):
|
def _update_conf_hashes(service, hashes):
|
||||||
|
|
Loading…
Add table
Reference in a new issue