From 79a7950b0b633801fc7afccfa9921336f8af80f0 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 2 Dec 2019 11:14:54 +0100 Subject: [PATCH] a desactivate service means that activate not exists --- src/rougail/template.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rougail/template.py b/src/rougail/template.py index 2531c7a9..d42a9b83 100644 --- a/src/rougail/template.py +++ b/src/rougail/template.py @@ -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"))