From f79dde04844087c1523597b3029f445bad5bbdd1 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Wed, 2 Dec 2020 14:56:45 +0100 Subject: [PATCH] test: satisfy t/03var.t AUTHOR test --- .../Agent/Task/Inventory/Generic/Batteries/SysClass.pm | 2 -- .../Agent/Task/Inventory/Generic/Ipmi/Fru/Controllers.pm | 1 - .../Agent/Task/Inventory/Generic/Storages/HpWithSmartctl.pm | 1 - 3 files changed, 4 deletions(-) diff --git a/lib/FusionInventory/Agent/Task/Inventory/Generic/Batteries/SysClass.pm b/lib/FusionInventory/Agent/Task/Inventory/Generic/Batteries/SysClass.pm index 55219c003..f367c71e8 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Generic/Batteries/SysClass.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Generic/Batteries/SysClass.pm @@ -71,8 +71,6 @@ sub _getBatteriesFromSysClass { sub _getBatteryFromSysClass { my (%params) = @_; - my $data = {}; - my $battery = { NAME => getFirstLine(file => "$params{psu}/model_name"), CHEMISTRY => getFirstLine(file => "$params{psu}/technology"), diff --git a/lib/FusionInventory/Agent/Task/Inventory/Generic/Ipmi/Fru/Controllers.pm b/lib/FusionInventory/Agent/Task/Inventory/Generic/Ipmi/Fru/Controllers.pm index fa84cb919..94d1e6a41 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Generic/Ipmi/Fru/Controllers.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Generic/Ipmi/Fru/Controllers.pm @@ -26,7 +26,6 @@ sub doInventory { my (%params) = @_; my $inventory = $params{inventory}; - my $logger = $params{logger}; my $fru = getIpmiFru(%params) or return; diff --git a/lib/FusionInventory/Agent/Task/Inventory/Generic/Storages/HpWithSmartctl.pm b/lib/FusionInventory/Agent/Task/Inventory/Generic/Storages/HpWithSmartctl.pm index df4362fb7..1dd1e11eb 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/Generic/Storages/HpWithSmartctl.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/Generic/Storages/HpWithSmartctl.pm @@ -23,7 +23,6 @@ sub doInventory { my (%params) = @_; my $inventory = $params{inventory}; - my $logger = $params{logger}; my $adp = _getData(%params);