]> 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>
Tue, 4 Jun 2019 11:14:45 +0000 (13:14 +0200)
sysdir is a string, we wanted sysdata

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/Diskmanage.pm

index fbb0341c710d2cd28966d0d2f545c3ee200bc93c..10b5737aaba2fceb4735c081c1ad94124e0a1463 100644 (file)
@@ -511,7 +511,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;
                }
            };