From d4208c7cc62a18c85b24b3d55dc1d22d3bae52d8 Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Mon, 27 Jan 2025 12:29:14 +0100 Subject: [PATCH] vzdump: anchor matches for pending and special sections Otherwise, a snapshot with a name that includes "pending" will be misinterpreted as the pending section. Only affects the warning messages, but still confusing. Signed-off-by: Fiona Ebner Link: https://lore.proxmox.com/20250127112923.31703-8-f.ebner@proxmox.com --- PVE/VZDump/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index 44b68ae9..72a76e65 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -237,9 +237,9 @@ sub assemble { next if $line =~ m/^\#vzdump\#/; # just to be sure next if $line =~ m/^\#qmdump\#/; # just to be sure if ($line =~ m/^\[(.*)\]\s*$/) { - if ($1 =~ m/PENDING/i) { + if ($1 =~ m/^PENDING$/i) { $found_pending = 1; - } elsif ($1 =~ m/special:cloudinit/) { + } elsif ($1 =~ m/^special:cloudinit$/) { $found_cloudinit = 1; } else { $found_snapshot = 1;