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};
|
||||
|
||||
Reference in New Issue
Block a user