Add WWbool.BoolDefaultTrue()
New support in WWbool for booleans that default "true." Used primarily for NetDev.OnBoot. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -28,9 +28,7 @@ GATEWAY={{ $netdev.Gateway }}
|
||||
{{- if $netdev.Hwaddr }}
|
||||
HWADDR={{ $netdev.Hwaddr }}
|
||||
{{- end }}
|
||||
{{- if $netdev.OnBoot }}
|
||||
ONBOOT=true
|
||||
{{- end }}
|
||||
ONBOOT={{ $netdev.OnBoot.BoolDefaultTrue }}
|
||||
IPV6INIT=yes
|
||||
IPV6_AUTOCONF=yes
|
||||
IPV6_DEFROUTE=yes
|
||||
|
||||
Reference in New Issue
Block a user