[pve-devel] [PATCH storage 2/3] Diskmanage: fix incorrect variable usage

Dominik Csapak d.csapak at proxmox.com
Tue Jun 4 13:05:28 CEST 2019


sysdir is a string, we wanted sysdata

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/Diskmanage.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm
index fbb0341..10b5737 100644
--- a/PVE/Diskmanage.pm
+++ b/PVE/Diskmanage.pm
@@ -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;
 		}
 	    };
-- 
2.11.0





More information about the pve-devel mailing list