disks: fix warnings

This commit is contained in:
Wolfgang Bumiller
2016-10-07 08:53:26 +02:00
committed by Dietmar Maurer
parent f32c7ebfa0
commit d57fb43d9b
2 changed files with 1 additions and 3 deletions

View File

@ -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};

View File

@ -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