X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=blobdiff_plain;f=PVE%2FDiskmanage.pm;h=ca6f0b7bc5dc9cd5172bd3ba8de0bd967f852f8d;hp=55da2e5f285a34b70c5c9e27fa8220866efb8710;hb=f7a95153d64973d3e3aadec95794867e564bb4ca;hpb=0e30b3121d3c8d5ed69df94653b8ae36c9a2b708 diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm index 55da2e5..ca6f0b7 100644 --- a/PVE/Diskmanage.pm +++ b/PVE/Diskmanage.pm @@ -915,7 +915,7 @@ sub wipe_blockdev { push $to_wipe->@*, "/dev/${part}" if -b "/dev/${part}"; }); - if (scalar($to_wipe->$#*) > 0) { + if (scalar($to_wipe->@*) > 0) { print "found child partitions to wipe: ". join(', ', $to_wipe->@*) ."\n"; } push $to_wipe->@*, $devpath; # put actual device last