From ee6ab51e4284eadc6efecdab444cb10ea437e2de Mon Sep 17 00:00:00 2001
From: Martin Pietsch <martin.pietsch@tu-dresden.de>
Date: Fri, 11 Dec 2020 08:22:52 +0100
Subject: [PATCH] remove 'linux.' from distribution for enviroment variable

---
 templates/answerfile.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/answerfile.j2 b/templates/answerfile.j2
index dcf7e43..956f9d6 100644
--- a/templates/answerfile.j2
+++ b/templates/answerfile.j2
@@ -1,5 +1,5 @@
 {% set hostobj = hostvars[inventory_hostname] %}
-export DISTRIBUTION="{{ hostobj.os.distribution }}"
+export DISTRIBUTION="{{ hostobj.os.distribution | lower | regex_replace('^linux.', '') }}"
 export RELEASE="{{ hostobj.os.release }}"
 export ARCH="{{ hostobj.os.architecture }}"
 export MIRROR="{{ system_local_mirror | default(system_home_mirror | default("")) }}"
-- 
GitLab