From 97187117681bc22a505c912e1385cc67d0712e1f Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Mon, 2 Jan 2023 21:00:30 -0700 Subject: [PATCH] Fix variable naming to use valid characters Fixes #626 Signed-off-by: Jonathon Anderson --- .../etc/NetworkManager/system-connections/ww4-managed.ww | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/overlays/wwinit/etc/NetworkManager/system-connections/ww4-managed.ww b/overlays/wwinit/etc/NetworkManager/system-connections/ww4-managed.ww index cef5b933..fc3e9807 100644 --- a/overlays/wwinit/etc/NetworkManager/system-connections/ww4-managed.ww +++ b/overlays/wwinit/etc/NetworkManager/system-connections/ww4-managed.ww @@ -1,15 +1,15 @@ {{- $host := .BuildHost }} {{- $time := .BuildTime }} {{- $source := .BuildSource }} -{{- range $connection-id, $netdev := .NetDevs }} -{{- $filename := print "warewulf-" $connection-id ".conf" }} +{{- range $connection_id, $netdev := .NetDevs }} +{{- $filename := print "warewulf-" $connection_id ".conf" }} {{- file $filename }} # This file is autogenerated by warewulf # Host: {{ $host }} # Time: {{ $time }} # Source: {{ $source }} [connection] -id={{ $connection-id }} +id={{ $connection_id }} interface-name={{ $netdev.Device }} {{ if $netdev.Type -}} type={{ $netdev.Type }}