See commit "abstract config: make get_backup_volumes() method more
flexible" in the pve-guest-common repository.

Signed-off-by: Fiona Ebner <f.eb...@proxmox.com>
---
 src/PVE/LXC/Config.pm | 2 +-
 src/PVE/VZDump/LXC.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 0740e8c..6fcbaa0 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -1852,7 +1852,7 @@ sub get_replicatable_volumes {
 }
 
 sub get_backup_volumes {
-    my ($class, $conf) = @_;
+    my ($class, $conf, $vmid) = @_;
 
     my $return_volumes = [];
 
diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 9029387..cf9c383 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -129,7 +129,7 @@ sub prepare {
 
     my $volids = $task->{volids} = [];
 
-    my $backup_volumes = PVE::LXC::Config->get_backup_volumes($conf);
+    my $backup_volumes = PVE::LXC::Config->get_backup_volumes($conf, $vmid);
 
     for my $volume (@{$backup_volumes}) {
        my $name = $volume->{key};
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to