]> git.proxmox.com Git - pve-storage.git/commitdiff
disk manage: fix dereferencing draid config
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Nov 2022 18:08:50 +0000 (19:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Nov 2022 18:10:58 +0000 (19:10 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Disks/ZFS.pm

index 9acee61ca05509a50069e6cf8e0f715631fe31e9..a9dc3a7cf5e299317c30058735698e6a4f820162 100644 (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;