mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-25 06:03:52 +03:00
qmrestore: fix restore from STDIN
the special case was dropped when moving this to pve-storage. fixes commit c6d517835abfe345c31cd889b557529d334dcf04 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
19abcdd07e
commit
a2ec5a6705
@ -5655,6 +5655,9 @@ sub tar_restore_cleanup {
|
||||
sub restore_file_archive {
|
||||
my ($archive, $vmid, $user, $opts) = @_;
|
||||
|
||||
return restore_vma_archive($archive, $vmid, $user, $opts)
|
||||
if $archive eq '-';
|
||||
|
||||
my $info = PVE::Storage::archive_info($archive);
|
||||
my $format = $opts->{format} // $info->{format};
|
||||
my $comp = $info->{compression};
|
||||
|
Loading…
x
Reference in New Issue
Block a user