]> git.proxmox.com Git - pve-storage.git/commitdiff
Diskmanage: fix incorrect variable usage
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 4 Jun 2019 11:05:28 +0000 (13:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 14 Jun 2019 08:07:46 +0000 (10:07 +0200)
sysdir is a string, we wanted sysdata

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit c5fa45a99fa1d7ba792864b6dbb0033fcfd115ef)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Diskmanage.pm

index 6b2fe1fdf7aceede7f285a2f7dc4d4c0d2642918..3d2e6a9c1e89c9e791a4284f175839b53ea64a28 100644 (file)
@@ -471,7 +471,7 @@ sub get_disks {
 
                if ($type eq 'ssd') {
                    # if we have an ssd we try to get the wearout indicator
-                   my $wearval = get_wear_leveling_info($smartdata, $data->{model} || $sysdir->{model});
+                   my $wearval = get_wear_leveling_info($smartdata, $data->{model} || $sysdata->{model});
                    $wearout = $wearval if $wearval;
                }
            };