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'] filename = fill['source']
if not isfile(join(distrib_dir, filename)): if not isfile(join(distrib_dir, filename)):
raise FileNotFound(_(f"File {filename} does not exist.")) raise FileNotFound(_(f"File {filename} does not exist."))
print(fill) if fill.get('activate', False):
if fill['activate']:
self.instance_file(fill, current_container) self.instance_file(fill, current_container)
else: else:
log.debug(_("Instantiation of file '{filename}' disabled")) log.debug(_("Instantiation of file '{filename}' disabled"))