File fixes-a-template-rendering-error.patch of Package cobbler
From 5e5ef6c8c13f7143c4f154a4b5de2b8dabefb86c Mon Sep 17 00:00:00 2001
From: Richard Berger <richard.berger@temple.edu>
Date: Thu, 17 Oct 2019 18:09:55 -0400
Subject: [PATCH] Fixes a template rendering error
Some parts of the code that generate the interface dictionaries must have
changed since it no longer contains 'gateway' as a key. Since this is a system
property anyway, get it directly using getVar.
---
autoinstall_snippets/pre_install_network_config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autoinstall_snippets/pre_install_network_config b/autoinstall_snippets/pre_install_network_config
index 5e1de1b46..8ad29cb08 100644
--- a/autoinstall_snippets/pre_install_network_config
+++ b/autoinstall_snippets/pre_install_network_config
@@ -60,7 +60,7 @@ get_ifname() {
#set $static = $idata["static"]
#set $ip = $idata["ip_address"]
#set $netmask = $idata["netmask"]
- #set $gateway = $idata["gateway"]
+ #set $gateway = $getVar("gateway","")
#set $if_gateway = $idata["if_gateway"]
#set $iface_type = $idata["interface_type"]
#set $iface_master = $idata["interface_master"]