5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-01-24 02:04:13 +03:00

disk manage: fix dereferencing draid config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-17 19:08:50 +01:00
parent 76e84829e5
commit 06deafa43e

View File

@ -470,8 +470,8 @@ __PACKAGE__->register_method ({
push @$cmd, $devs->[0];
} elsif ($raidlevel =~ m/^draid/) {
my $draid_cmd = $raidlevel;
$draid_cmd .= ":$$draid_config->{data}d" if $$draid_config->{data};
$draid_cmd .= ":$$draid_config->{spares}s" if $draid_config->{spares};
$draid_cmd .= ":$draid_config->{data}d" if $draid_config->{data};
$draid_cmd .= ":$draid_config->{spares}s" if $draid_config->{spares};
push @$cmd, $draid_cmd, @$devs;
} else {
push @$cmd, $raidlevel, @$devs;