Fixing tests in review of #1568

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-01-17 00:58:12 -07:00
parent 847d11611b
commit eff1edd038
27 changed files with 90 additions and 98 deletions

View File

@@ -12,11 +12,11 @@ proc /proc proc defaults 0 0
{{- if $fs.MountOptions }} noauto{{range $index,$opt := $fs.MountOptions }},{{ $opt }}{{ end }} 0 0
{{- else }} noauto,defaults 0 0
{{- end }}{{ end }}{{ end }}
{{- $Resource := .Resource }}{{ $server := .Ipaddr}}{{/* export the needed values */}}
{{- range $i,$ResName := .ResourceList }}
{{- if eq (substr 0 3 $ResName) "NFS" }}{{ $nfs := (index $Resource $ResName)}}
{{- $server := .Ipaddr}}{{/* export the needed values */}}
{{- range $i,$ResName := .Node.Resources }}
{{- if eq (substr 0 3 $ResName) "NFS" }}{{ $nfs := (index $.Resources $ResName)}}
# Resource: {{ $ResName }}
{{- if not (eq $nfs.server "controller") }}{{ $server = $nfs.server }}{{ end }}
{{ $server }}:{{ $nfs.epath}} {{ $nfs.mountpoint }} nfs {{ $nfs.moptions }} 0 0
{{- end }}
{{- end }}
{{- end }}