disks: fix warnings
This commit is contained in:
committed by
Dietmar Maurer
parent
f32c7ebfa0
commit
d57fb43d9b
@ -138,8 +138,6 @@ __PACKAGE__->register_method ({
|
||||
|
||||
my $disk = PVE::Diskmanage::verify_blockdev_path($param->{disk});
|
||||
|
||||
my $result = {};
|
||||
|
||||
my $result = PVE::Diskmanage::get_smart_data($disk, $param->{healthonly});
|
||||
|
||||
$result->{health} = 'UNKNOWN' if !defined $result->{health};
|
||||
|
||||
@ -301,7 +301,7 @@ sub get_wear_leveling_info {
|
||||
|
||||
my $attrid;
|
||||
|
||||
foreach my $vendor (keys $vendormap) {
|
||||
foreach my $vendor (keys %$vendormap) {
|
||||
if ($model =~ m/$vendor/i) {
|
||||
$attrid = $vendormap->{$vendor};
|
||||
# found the attribute
|
||||
|
||||
Reference in New Issue
Block a user