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>
---
 PVE/API2/Backup.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Backup.pm b/PVE/API2/Backup.pm
index f37e2393..0f6a3a8e 100644
--- a/PVE/API2/Backup.pm
+++ b/PVE/API2/Backup.pm
@@ -695,11 +695,11 @@ __PACKAGE__->register_method({
 
            if ($type eq 'qemu') {
                $conf = PVE::QemuConfig->load_config($vmid, $node);
-               $volumes = PVE::QemuConfig->get_backup_volumes($conf);
+               $volumes = PVE::QemuConfig->get_backup_volumes($conf, $vmid);
                $name = $conf->{name};
            } elsif ($type eq 'lxc') {
                $conf = PVE::LXC::Config->load_config($vmid, $node);
-               $volumes = PVE::LXC::Config->get_backup_volumes($conf);
+               $volumes = PVE::LXC::Config->get_backup_volumes($conf, $vmid);
                $name = $conf->{hostname};
            } else {
                die "VMID $vmid is neither Qemu nor LXC guest\n";
-- 
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