jinja source template fix
This commit is contained in:
parent
cc850b7d70
commit
37a453dcb9
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -29,8 +29,8 @@ client_hostname = socket.gethostname().split('.', 1)[0]
|
||||||
def generate(api_client):
|
def generate(api_client):
|
||||||
all_users = api_client.list("localemail/users")
|
all_users = api_client.list("localemail/users")
|
||||||
# Création de l'environnement Jinja
|
# Création de l'environnement Jinja
|
||||||
env = Environment(loader=FileSystemLoader('.'))
|
env = Environment(loader=FileSystemLoader(path))
|
||||||
template = env.get_template(path+'/templates/list')
|
template = env.get_template('templates/list')
|
||||||
aliases_rendered = template.render(data=all_users)
|
aliases_rendered = template.render(data=all_users)
|
||||||
|
|
||||||
fichier = open(path+'/generated/aliases','w')
|
fichier = open(path+'/generated/aliases','w')
|
||||||
|
|
Loading…
Reference in a new issue