mirror of
git://git.proxmox.com/git/pve-zsync.git
synced 2025-03-11 20:58:42 +03:00
fix disk parser
This commit is contained in:
parent
938ef92d6b
commit
aec521ca2e
@ -774,13 +774,13 @@ sub parse_disks {
|
||||
$disks->{$num}->{all} .= "\/$disk";
|
||||
|
||||
$num++;
|
||||
} elsif ($vm_type eq 'lxc' && $path =~ m/^\/(\w+.+)\/(\w+.*)(\/$disk)$/) {
|
||||
} elsif ($vm_type eq 'lxc' && $path =~ m/^\/(\w+.+)(\/(\w+.*))*(\/$disk)$/) {
|
||||
|
||||
$disks->{$num}->{pool} = $1;
|
||||
$disks->{$num}->{all} = $disks->{$num}->{pool};
|
||||
|
||||
if ($2) {
|
||||
$disks->{$num}->{path} = $2;
|
||||
$disks->{$num}->{path} = $3;
|
||||
$disks->{$num}->{all} .= "\/$disks->{$num}->{path}";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user