added abort function for templates
This commit is contained in:
@@ -40,4 +40,6 @@ subnet {{$.Network}} netmask {{$.Netmask}} {
|
||||
range {{$.Dhcp.RangeStart}} {{$.Dhcp.RangeEnd}};
|
||||
next-server {{$.Ipaddr}};
|
||||
}
|
||||
{{- else }}
|
||||
{{- abort }}
|
||||
{{- end }}
|
||||
@@ -11,4 +11,7 @@
|
||||
{{range .Nfs.Exports }}
|
||||
{{ . }} {{ $network }}/{{ $netmask }}(rw,sync,no_subtree_check)
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- abort }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user