[fix] only remove a service if it is setted to null

This commit is contained in:
Laurent Peuch 2017-03-20 01:49:27 +01:00
parent a18486df05
commit 50188ae265
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ with open('/etc/yunohost/services.yml') as f:
updated = False
for service, conf in new_services.items():
# remove service with empty conf
if not conf:
if conf is None:
if service in services:
print("removing '{0}' from services".format(service))
del services[service]

View file

@ -50,7 +50,7 @@ yunohost-firewall:
nslcd:
status: service
log: /var/log/syslog
nsswitch: null
nsswitch: {}
bind9: null
tahoe-lafs: null
memcached: null