mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 15:24:32 +00:00
vzdump: use new 'pbs' option
instead of storage config to determine whether we are in 'PBS mode' Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
ae194a5c5e
commit
690748632b
@ -248,7 +248,7 @@ sub archive {
|
|||||||
my $opts = $self->{vzdump}->{opts};
|
my $opts = $self->{vzdump}->{opts};
|
||||||
my $scfg = $opts->{scfg};
|
my $scfg = $opts->{scfg};
|
||||||
|
|
||||||
if ($scfg->{type} eq 'pbs') {
|
if ($self->{vzdump}->{opts}->{pbs}) {
|
||||||
$self->archive_pbs($task, $vmid);
|
$self->archive_pbs($task, $vmid);
|
||||||
} else {
|
} else {
|
||||||
$self->archive_vma($task, $vmid, $filename, $comp);
|
$self->archive_vma($task, $vmid, $filename, $comp);
|
||||||
|
Loading…
Reference in New Issue
Block a user