5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-08 21:18:03 +03:00

qmrestore: fix restore from STDIN

the special case was dropped when moving this to pve-storage.

fixes commit c6d517835a

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-05-07 09:15:33 +02:00 committed by Thomas Lamprecht
parent 19abcdd07e
commit a2ec5a6705

View File

@ -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};