vzdump: assemble: fix skipping all pending and snapshot config entries

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-05-04 17:29:09 +02:00
parent fa38a81217
commit 1bd6fe132f

View File

@ -210,8 +210,8 @@ sub assemble {
} else {
$found_snapshot = 1;
}
next; # skip all snapshots and pending changes config data
}
next if $found_snapshot || $found_pending; # skip all snapshots and pending changes config data
if ($line =~ m/^unused\d+:\s*(\S+)\s*/) {
$self->loginfo("skip unused drive '$1' (not included into backup)");