added abort function for templates

This commit is contained in:
Christian Goll
2022-02-15 20:08:23 +01:00
committed by jcsiadal
parent c8c2f2ec90
commit e4ac802dca
3 changed files with 32 additions and 19 deletions

View File

@@ -40,4 +40,6 @@ subnet {{$.Network}} netmask {{$.Netmask}} {
range {{$.Dhcp.RangeStart}} {{$.Dhcp.RangeEnd}};
next-server {{$.Ipaddr}};
}
{{- else }}
{{- abort }}
{{- end }}

View File

@@ -11,4 +11,7 @@
{{range .Nfs.Exports }}
{{ . }} {{ $network }}/{{ $netmask }}(rw,sync,no_subtree_check)
{{- end }}
{{- else }}
{{- abort }}
{{- end }}