a desactivate service means that activate not exists

This commit is contained in:
Emmanuel Garette 2019-12-02 11:14:54 +01:00
parent 96e392cfd8
commit 79a7950b0b

View file

@ -427,8 +427,7 @@ class CreoleTemplateEngine:
filename = fill['source']
if not isfile(join(distrib_dir, filename)):
raise FileNotFound(_(f"File {filename} does not exist."))
print(fill)
if fill['activate']:
if fill.get('activate', False):
self.instance_file(fill, current_container)
else:
log.debug(_("Instantiation of file '{filename}' disabled"))