File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55{ {- else } }
66{ {- $disk := " /dev/sda" } }
77{ {- range (lookup " disks" " " " " ).items } }
8- { {- if .spec.wwid } }
8+ { {- if or .spec.wwid .spec.model } }
99{ {- $disk = .spec.dev_path } }
1010{ {- break } }
1111{ {- end } }
3030{ {- define " talm.discovered.disks_info" } }
3131# -- Discovered disks:
3232{ {- range (lookup " disks" " " " " ).items } }
33- { {- if .spec.wwid } }
33+ { {- if or .spec.wwid .spec.model } }
3434# { { .spec.dev_path } }:
3535# model: { { .spec.model } }
3636# serial: { { .spec.serial } }
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ description: A library Talm chart for Talos Linux
235235{{- else }}
236236{{- $disk := "/dev/sda" }}
237237{{- range (lookup "disks" "" "").items }}
238- {{- if .spec.wwid }}
238+ {{- if or .spec.wwid .spec.model }}
239239{{- $disk = .spec.dev_path }}
240240{{- break }}
241241{{- end }}
@@ -260,7 +260,7 @@ description: A library Talm chart for Talos Linux
260260{{- define "talm.discovered.disks_info" }}
261261# -- Discovered disks:
262262{{- range (lookup "disks" "" "").items }}
263- {{- if .spec.wwid }}
263+ {{- if or .spec.wwid .spec.model }}
264264# {{ .spec.dev_path }}:
265265# model: {{ .spec.model }}
266266# serial: {{ .spec.serial }}
You can’t perform that action at this time.
0 commit comments