[pve-devel] [PATCH manager 02/12] api: backup: adapt to new get_backup_volumes() signature
Fiona Ebner
f.ebner at proxmox.com
Tue Mar 4 11:44:03 CET 2025
See commit "abstract config: make get_backup_volumes() method more
flexible" in the pve-guest-common repository.
Signed-off-by: Fiona Ebner <f.ebner at 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
More information about the pve-devel
mailing list