From 11c0469afa01d8857c29be4c0992b2feae8814f0 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Thu, 28 Sep 2023 19:09:02 +0200 Subject: [PATCH] fix: Also support WD as model prefix to detect Western Digital disk manufacturer --- lib/GLPI/Agent/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GLPI/Agent/Tools.pm b/lib/GLPI/Agent/Tools.pm index 441c66c0d..f57a374d1 100644 --- a/lib/GLPI/Agent/Tools.pm +++ b/lib/GLPI/Agent/Tools.pm @@ -214,7 +214,7 @@ sub getCanonicalManufacturer { "Hitachi" => qr/^(HD|IC|HU|HGST)/, "Seagate" => qr/^(ST|(?i)seagate)/, "Sony" => qr/^OPTIARC/i, - "Western Digital" => qr/^(WDC|(?i)western)/, + "Western Digital" => qr/^(WDC?|(?i)western)/, ); if (exists $manufacturers{$manufacturer}) {