Skip to content

Commit 0789be3

Browse files
committed
Fix filter to show QEMU disks
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
1 parent c7afeb2 commit 0789be3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/talm/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 }}
@@ -30,7 +30,7 @@
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 }}

pkg/generated/presets.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)