[pve-devel] [PATCH qemu-server] vzdump: use new 'pbs' option
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed May 6 10:57:53 CEST 2020
instead of storage config to determine whether we are in 'PBS mode'
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Notes:
requires a break on pve-manager << version setting this option,
since the dependency is the other way round.
PVE/VZDump/QemuServer.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index f122539..1bdc490 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -248,7 +248,7 @@ sub archive {
my $opts = $self->{vzdump}->{opts};
my $scfg = $opts->{scfg};
- if ($scfg->{type} eq 'pbs') {
+ if ($self->{vzdump}->{opts}->{pbs}) {
$self->archive_pbs($task, $vmid);
} else {
$self->archive_vma($task, $vmid, $filename, $comp);
--
2.20.1
More information about the pve-devel
mailing list