From ce9879a90e0d81f7681ebe2530a0f5e796525189 Mon Sep 17 00:00:00 2001 From: Teddy Andrieux Date: Wed, 14 May 2025 13:13:01 +0200 Subject: [PATCH] Always convert WWN to lower case when searching for permanenet paths --- pkg/domain/entities/physicaldrive/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/domain/entities/physicaldrive/types.go b/pkg/domain/entities/physicaldrive/types.go index e545386..c75dc7c 100644 --- a/pkg/domain/entities/physicaldrive/types.go +++ b/pkg/domain/entities/physicaldrive/types.go @@ -133,7 +133,7 @@ func (pd *PhysicalDrive) ComputePaths() error { } } else { if pd.WWN != "" { - permanentPath := fmt.Sprintf("/dev/disk/by-id/wwn-%s", pd.WWN) + permanentPath := fmt.Sprintf("/dev/disk/by-id/wwn-%s", strings.ToLower(pd.WWN)) if utils.FileExists(permanentPath) { pd.PermanentPath = permanentPath }