From 20468734a093f502430dce700ff70a64382de8da Mon Sep 17 00:00:00 2001 From: Xan Manning Date: Mon, 20 Dec 2021 21:34:15 +0000 Subject: [PATCH] fix(systemd): templating error for environment vars --- templates/k3s.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/k3s.service.j2 b/templates/k3s.service.j2 index 0042224..3df8eb6 100644 --- a/templates/k3s.service.j2 +++ b/templates/k3s.service.j2 @@ -19,8 +19,8 @@ After={{ after_unit }} [Service] Type={{ 'notify' if k3s_control_node else 'exec' }} {% if k3s_service_env_vars is defined and k3s_service_env_vars is iterable %} -{% for env_var, env_value in k3s_service_env_vars %} -Environent={{ env_var }}={{ env_value }} +{% for env_var in k3s_service_env_vars %} +Environent={{ env_var }}={{ k3s_service_env_vars[env_var] }} {% endfor %} {% endif %} {% if k3s_service_env_file is defined and k3s_service_env_file %}