Fix variable naming to use valid characters
Fixes #626 Signed-off-by: Jonathon Anderson <janderson@ciq.co>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user